1 heat_template_version: pike
4 All configurations which require reboot should be initiated via PreNetworkConfig. After
5 this configuration is completed, the corresponding node will be rebooted.
12 description: Role Specific parameters
15 default: ['CREATE', 'UPDATE']
16 type: comma_delimited_list
18 List of stack actions that will trigger any deployments in this
19 templates. The actions will be an empty list of the server is in the
20 toplevel DeploymentServerBlacklist parameter's value.
23 is_host_config_required: {not: {equals: [{get_param: [RoleParameters, KernelArgs]}, ""]}}
24 deployment_actions_empty:
26 - {get_param: deployment_actions}
31 type: OS::Heat::SoftwareConfig
32 condition: is_host_config_required
37 - name: _TUNED_PROFILE_NAME_
42 get_file: ansible_host_config.yaml
44 HostParametersDeployment:
45 type: OS::Heat::SoftwareDeployment
46 condition: is_host_config_required
48 name: HostParametersDeployment
49 server: {get_param: server}
50 config: {get_resource: HostParametersConfig}
53 - deployment_actions_empty
55 - ['CREATE'] # Only do this on CREATE
57 _KERNEL_ARGS_: {get_param: [RoleParameters, KernelArgs]}
58 _TUNED_PROFILE_NAME_: {get_param: [RoleParameters, TunedProfileName]}
59 _TUNED_CORES_: {get_param: [RoleParameters, HostIsolatedCoreList]}
62 type: OS::Heat::SoftwareConfig
63 condition: is_host_config_required
68 # Stop os-collect-config to avoid any race collecting another
69 # deployment before reboot happens
70 systemctl stop os-collect-config.service
74 type: OS::Heat::SoftwareDeployment
75 depends_on: HostParametersDeployment
76 condition: is_host_config_required
78 name: RebootDeployment
79 server: {get_param: server}
80 config: {get_resource: RebootConfig}
83 - deployment_actions_empty
85 - ['CREATE'] # Only do this on CREATE
86 signal_transport: NO_SIGNAL
90 condition: is_host_config_required
92 get_attr: [HostParametersDeployment, result]
94 condition: is_host_config_required
96 get_attr: [HostParametersDeployment, deploy_stdout]
98 condition: is_host_config_required
100 get_attr: [HostParametersDeployment, deploy_stderr]
102 condition: is_host_config_required
104 get_attr: [HostParametersDeployment, deploy_status_code]