Merge "Convert noop NetworkExtraConfig to OS::Heat::None"
[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   StepConfig:
15     type: string
16     description: Config manifests that will be used to step through the deployment.
17     default: ''
18
19 resources:
20
21   VolumeArtifactsConfig:
22     type: deploy-artifacts.yaml
23
24   VolumeArtifactsDeploy:
25     type: OS::Heat::StructuredDeployments
26     properties:
27       servers:  {get_param: servers}
28       config: {get_resource: VolumeArtifactsConfig}
29       input_values:
30         update_identifier: {get_param: NodeConfigIdentifiers}
31
32   VolumePuppetConfig:
33     type: OS::Heat::SoftwareConfig
34     depends_on: VolumeArtifactsDeploy
35     properties:
36       group: puppet
37       options:
38         enable_debug: {get_param: ConfigDebug}
39         enable_hiera: True
40         enable_facter: False
41       inputs:
42       - name: step
43       outputs:
44       - name: result
45       config:
46         list_join:
47         - ''
48         - - get_file: manifests/overcloud_volume.pp
49           - {get_param: StepConfig}
50
51   VolumeDeployment_Step2:
52     type: OS::Heat::StructuredDeployments
53     depends_on: VolumeArtifactsDeploy
54     properties:
55       name: VolumeDeployment_Step2
56       servers:  {get_param: servers}
57       config: {get_resource: VolumePuppetConfig}
58       input_values:
59         step: 2
60         update_identifier: {get_param: NodeConfigIdentifiers}
61
62   VolumeDeployment_Step3:
63     type: OS::Heat::StructuredDeployments
64     depends_on: VolumeDeployment_Step2
65     properties:
66       name: VolumeDeployment_Step3
67       servers:  {get_param: servers}
68       config: {get_resource: VolumePuppetConfig}
69       input_values:
70         step: 3
71         update_identifier: {get_param: NodeConfigIdentifiers}
72
73   VolumeDeployment_Step4:
74     type: OS::Heat::StructuredDeployments
75     depends_on: VolumeDeployment_Step3
76     properties:
77       name: VolumeDeployment_Step4
78       servers:  {get_param: servers}
79       config: {get_resource: VolumePuppetConfig}
80       input_values:
81         step: 4
82         update_identifier: {get_param: NodeConfigIdentifiers}
83
84   # Note, this should come last, so use depends_on to ensure
85   # this is created after any other resources.
86   ExtraConfig:
87     depends_on: VolumeDeployment_Step4
88     type: OS::TripleO::NodeExtraConfigPost
89     properties:
90         servers: {get_param: servers}