Merge "Manage keystone initialization directly in t-h-t manifests"
[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       servers:  {get_param: servers}
35       config: {get_resource: ComputePuppetConfig}
36       input_values:
37         update_identifier: {get_param: NodeConfigIdentifiers}
38
39   # Note, this should come last, so use depends_on to ensure
40   # this is created after any other resources.
41   ExtraConfig:
42     depends_on: ComputePuppetDeployment
43     type: OS::TripleO::NodeExtraConfigPost
44     properties:
45         servers: {get_param: servers}
46