1 heat_template_version: 2014-10-16
2 description: 'Post-Puppet Config for Pacemaker deployments'
9 description: input values for the software deployments
13 ControllerPostPuppetMaintenanceModeConfig:
14 type: OS::Heat::SoftwareConfig
19 pacemaker_status=$(systemctl is-active pacemaker)
21 if [ "$pacemaker_status" = "active" ]; then
22 pcs property set maintenance-mode=false
25 ControllerPostPuppetMaintenanceModeDeployment:
26 type: OS::Heat::SoftwareDeployments
28 servers: {get_param: servers}
29 config: {get_resource: ControllerPostPuppetMaintenanceModeConfig}
30 input_values: {get_param: input_values}
32 ControllerPostPuppetRestartConfig:
33 type: OS::Heat::SoftwareConfig
39 - - get_file: pacemaker_common_functions.sh
40 - get_file: pacemaker_resource_restart.sh
42 ControllerPostPuppetRestartDeployment:
43 type: OS::Heat::SoftwareDeployments
44 depends_on: ControllerPostPuppetMaintenanceModeDeployment
46 servers: {get_param: servers}
47 config: {get_resource: ControllerPostPuppetRestartConfig}
48 input_values: {get_param: input_values}