1 heat_template_version: pike
4 Do some configuration, then reboot - sometimes needed for early-boot
5 changes such as modifying kernel configuration
11 default: ['CREATE', 'UPDATE']
12 type: comma_delimited_list
14 List of stack actions that will trigger any deployments in this
15 templates. The actions will be an empty list of the server is in the
16 toplevel DeploymentServerBlacklist parameter's value.
19 deployment_actions_empty:
21 - {get_param: deployment_actions}
27 type: OS::Heat::SoftwareConfig
32 echo "did some config before reboot" > /root/pre-reboot-config
35 type: OS::Heat::SoftwareDeployment
38 server: {get_param: server}
39 config: {get_resource: SomeConfig}
42 - deployment_actions_empty
44 - ['CREATE'] # Only do this on CREATE
45 actions: ['CREATE'] # Only do this on CREATE
48 type: OS::Heat::SoftwareConfig
53 # Stop os-collect-config to avoid any race collecting another
54 # deployment before reboot happens
55 systemctl stop os-collect-config.service
59 type: OS::Heat::SoftwareDeployment
60 depends_on: SomeDeployment
62 name: RebootDeployment
63 server: {get_param: server}
64 config: {get_resource: RebootConfig}
67 - deployment_actions_empty
69 - ['CREATE'] # Only do this on CREATE
70 signal_transport: NO_SIGNAL