Make puppet-applying *Post resources depend on hieradata
[apex-tripleo-heat-templates.git] / puppet / compute-post-puppet.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   OpenStack compute node post deployment for Puppet.
5
6 parameters:
7   servers:
8     type: json
9   NodeConfigIdentifiers:
10      type: json
11      description: Value which changes if the node configuration may need to be re-applied
12
13
14 resources:
15
16   ComputePuppetConfig:
17     type: OS::Heat::SoftwareConfig
18     properties:
19       group: puppet
20       outputs:
21       - name: result
22       config:
23         get_file: manifests/overcloud_compute.pp
24
25   ComputePuppetDeployment:
26     type: OS::Heat::StructuredDeployments
27     properties:
28       servers:  {get_param: servers}
29       config: {get_resource: ComputePuppetConfig}
30       input_values:
31         update_identifier: {get_param: NodeConfigIdentifiers}
32
33   # Note, this should come last, so use depends_on to ensure
34   # this is created after any other resources.
35   ExtraConfig:
36     depends_on: ComputePuppetDeployment
37     type: OS::TripleO::NodeExtraConfigPost
38     properties:
39         servers: {get_param: servers}
40