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:
27 - {{role}}TunedProfileName
28 - {{role}}HostCpusList
35 - get_param: {{role}}KernelArgs
39 - get_param: {{role}}TunedProfileName
45 type: OS::Heat::SoftwareConfig
46 condition: param_exists
51 - name: _TUNED_PROFILE_NAME_
52 - name: _HOST_CPUS_LIST_
56 get_file: ansible_host_config.ansible
58 HostParametersDeployment:
59 type: OS::Heat::SoftwareDeployment
60 condition: param_exists
62 name: HostParametersDeployment
63 server: {get_param: server}
64 config: {get_resource: HostParametersConfig}
65 actions: ['CREATE'] # Only do this on CREATE
67 _KERNEL_ARGS_: {get_param: {{role}}KernelArgs}
68 _TUNED_PROFILE_NAME_: {get_param: {{role}}TunedProfileName}
69 _HOST_CPUS_LIST_: {get_param: {{role}}HostCpusList}
72 type: OS::Heat::SoftwareConfig
73 condition: param_exists
78 # Stop os-collect-config to avoid any race collecting another
79 # deployment before reboot happens
80 systemctl stop os-collect-config.service
84 type: OS::Heat::SoftwareDeployment
85 condition: param_exists
86 depends_on: HostParametersDeployment
88 name: RebootDeployment
89 server: {get_param: server}
90 config: {get_resource: RebootConfig}
91 actions: ['CREATE'] # Only do this on CREATE
92 signal_transport: NO_SIGNAL
97 get_attr: [HostParametersDeployment, result]
98 condition: param_exists
101 get_attr: [HostParametersDeployment, deploy_stdout]
102 condition: param_exists
105 get_attr: [HostParametersDeployment, deploy_stderr]
106 condition: param_exists
109 get_attr: [HostParametersDeployment, deploy_status_code]
110 condition: param_exists