Merge "Update the capabilities map file name to be more consistent"
[apex-tripleo-heat-templates.git] / puppet / compute-post.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   OpenStack compute node post deployment for Puppet.
5
6 parameters:
7   ConfigDebug:
8     default: false
9     description: Whether to run config management (e.g. Puppet) in debug mode.
10     type: boolean
11   servers:
12     type: json
13   NodeConfigIdentifiers:
14      type: json
15      description: Value which changes if the node configuration may need to be re-applied
16
17
18 resources:
19
20   ComputePuppetConfig:
21     type: OS::Heat::SoftwareConfig
22     properties:
23       group: puppet
24       options:
25         enable_debug: {get_param: ConfigDebug}
26       outputs:
27       - name: result
28       config:
29         get_file: manifests/overcloud_compute.pp
30
31   ComputePuppetDeployment:
32     type: OS::Heat::StructuredDeployments
33     properties:
34       name: ComputePuppetDeployment
35       servers:  {get_param: servers}
36       config: {get_resource: ComputePuppetConfig}
37       input_values:
38         update_identifier: {get_param: NodeConfigIdentifiers}
39
40   # Note, this should come last, so use depends_on to ensure
41   # this is created after any other resources.
42   ExtraConfig:
43     depends_on: ComputePuppetDeployment
44     type: OS::TripleO::NodeExtraConfigPost
45     properties:
46         servers: {get_param: servers}
47