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
16 is_host_config_required: {not: {equals: [{get_param: [RoleParameters, KernelArgs]}, ""]}}
20 type: OS::Heat::SoftwareConfig
21 condition: is_host_config_required
26 - name: _TUNED_PROFILE_NAME_
31 get_file: ansible_host_config.yaml
33 HostParametersDeployment:
34 type: OS::Heat::SoftwareDeployment
35 condition: is_host_config_required
37 name: HostParametersDeployment
38 server: {get_param: server}
39 config: {get_resource: HostParametersConfig}
40 actions: ['CREATE'] # Only do this on CREATE
42 _KERNEL_ARGS_: {get_param: [RoleParameters, KernelArgs]}
43 _TUNED_PROFILE_NAME_: {get_param: [RoleParameters, TunedProfileName]}
44 _TUNED_CORES_: {get_param: [RoleParameters, HostIsolatedCoreList]}
47 type: OS::Heat::SoftwareConfig
48 condition: is_host_config_required
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: HostParametersDeployment
61 condition: is_host_config_required
63 name: RebootDeployment
64 server: {get_param: server}
65 config: {get_resource: RebootConfig}
66 actions: ['CREATE'] # Only do this on CREATE
67 signal_transport: NO_SIGNAL
71 condition: is_host_config_required
73 get_attr: [HostParametersDeployment, result]
75 condition: is_host_config_required
77 get_attr: [HostParametersDeployment, deploy_stdout]
79 condition: is_host_config_required
81 get_attr: [HostParametersDeployment, deploy_stderr]
83 condition: is_host_config_required
85 get_attr: [HostParametersDeployment, deploy_status_code]