1 heat_template_version: pike
4 Do some configuration, then reboot - sometimes needed for early-boot
5 changes such as modifying kernel configuration
13 {{role}}TunedProfileName:
25 - get_param: {{role}}KernelArgs
29 - get_param: {{role}}TunedProfileName
35 type: OS::Heat::SoftwareConfig
36 condition: param_exists
41 - name: _TUNED_PROFILE_NAME_
42 - name: _HOST_CPUS_LIST_
46 get_file: ansible_host_config.ansible
48 HostParametersDeployment:
49 type: OS::Heat::SoftwareDeployment
50 condition: param_exists
52 name: HostParametersDeployment
53 server: {get_param: server}
54 config: {get_resource: HostParametersConfig}
55 actions: ['CREATE'] # Only do this on CREATE
57 _KERNEL_ARGS_: {get_param: {{role}}KernelArgs}
58 _TUNED_PROFILE_NAME_: {get_param: {{role}}TunedProfileName}
59 _HOST_CPUS_LIST_: {get_param: {{role}}HostCpusList}
62 type: OS::Heat::SoftwareConfig
63 condition: param_exists
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 condition: param_exists
76 depends_on: HostParametersDeployment
78 name: RebootDeployment
79 server: {get_param: server}
80 config: {get_resource: RebootConfig}
81 actions: ['CREATE'] # Only do this on CREATE
82 signal_transport: NO_SIGNAL
87 get_attr: [HostParametersDeployment, result]
88 condition: param_exists
91 get_attr: [HostParametersDeployment, deploy_stdout]
92 condition: param_exists
95 get_attr: [HostParametersDeployment, deploy_stderr]
96 condition: param_exists
99 get_attr: [HostParametersDeployment, deploy_status_code]
100 condition: param_exists