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