1 heat_template_version: pike
4 Do some configuration, then reboot - sometimes needed for early-boot
5 changes such as modifying kernel configuration
10 # Deprecated Parameters, these configuration are deprecated in favor or role-specific parameters.
11 # Use: extraconfig/pre_network/host_config_and_reboot.yaml.
12 # Deprecated in Pike and will be removed in Queens.
16 {{role}}TunedProfileName:
23 default: ['CREATE', 'UPDATE']
24 type: comma_delimited_list
26 List of stack actions that will trigger any deployments in this
27 templates. The actions will be an empty list of the server is in the
28 toplevel DeploymentServerBlacklist parameter's value.
34 - {{role}}TunedProfileName
35 - {{role}}HostCpusList
42 - get_param: {{role}}KernelArgs
46 - get_param: {{role}}TunedProfileName
48 deployment_actions_empty:
50 - {get_param: deployment_actions}
56 type: OS::Heat::SoftwareConfig
57 condition: param_exists
62 - name: _TUNED_PROFILE_NAME_
63 - name: _HOST_CPUS_LIST_
67 get_file: ansible_host_config.ansible
69 HostParametersDeployment:
70 type: OS::Heat::SoftwareDeployment
71 condition: param_exists
73 name: HostParametersDeployment
74 server: {get_param: server}
75 config: {get_resource: HostParametersConfig}
78 - deployment_actions_empty
80 - ['CREATE'] # Only do this on CREATE
82 _KERNEL_ARGS_: {get_param: {{role}}KernelArgs}
83 _TUNED_PROFILE_NAME_: {get_param: {{role}}TunedProfileName}
84 _HOST_CPUS_LIST_: {get_param: {{role}}HostCpusList}
87 type: OS::Heat::SoftwareConfig
88 condition: param_exists
93 # Stop os-collect-config to avoid any race collecting another
94 # deployment before reboot happens
95 systemctl stop os-collect-config.service
99 type: OS::Heat::SoftwareDeployment
100 condition: param_exists
101 depends_on: HostParametersDeployment
103 name: RebootDeployment
104 server: {get_param: server}
105 config: {get_resource: RebootConfig}
108 - deployment_actions_empty
110 - ['CREATE'] # Only do this on CREATE
111 signal_transport: NO_SIGNAL
116 get_attr: [HostParametersDeployment, result]
117 condition: param_exists
120 get_attr: [HostParametersDeployment, deploy_stdout]
121 condition: param_exists
124 get_attr: [HostParametersDeployment, deploy_stderr]
125 condition: param_exists
128 get_attr: [HostParametersDeployment, deploy_status_code]
129 condition: param_exists