8ac7eb739741edbe5a608d2795a80fadb14fb3e3
[apex-tripleo-heat-templates.git] / extraconfig / post_deploy / example.yaml
1 heat_template_version: ocata
2
3 description: >
4   Example extra config for post-deployment
5
6 # Note extra parameters can be defined, then passed data via the
7 # environment parameter_defaults, without modifying the parent template
8 parameters:
9   servers:
10     type: json
11
12 resources:
13
14   ExtraConfig:
15     type: OS::Heat::SoftwareConfig
16     properties:
17       group: script
18       config: |
19         #!/bin/sh
20         echo "extra" > /root/extra
21
22   ExtraDeployments:
23     type: OS::Heat::SoftwareDeployments
24     properties:
25       name: ExtraDeployments
26       servers:  {get_param: servers}
27       config: {get_resource: ExtraConfig}
28       actions: ['CREATE'] # Only do this on CREATE