1 heat_template_version: ocata
15 # Require this so we can validate the parent passes the
24 default: 'deployed-server'
29 type: comma_delimited_list
34 software_config_transport:
35 default: POLL_SERVER_CFN
39 description: Optional scheduler hints to pass to nova
44 Command or script snippet to run on all overcloud nodes to
45 initialize the upgrade process. E.g. a repository switch.
50 type: OS::Heat::DeployedServer
52 name: {get_param: name}
53 software_config_transport: {get_param: software_config_transport}
56 type: OS::Heat::SoftwareConfig
63 - "if [[ -f /etc/resolv.conf.save ]] ; then rm /etc/resolv.conf.save; fi\n\n"
64 - get_param: UpgradeInitCommand
66 UpgradeInitDeployment:
67 type: OS::Heat::SoftwareDeployment
69 name: UpgradeInitDeployment
70 server: {get_resource: deployed-server}
71 config: {get_resource: UpgradeInitConfig}
75 type: OS::Heat::StructuredConfig
79 instance-id: {get_resource: deployed-server}
82 type: OS::Heat::StructuredDeployment
84 name: InstanceIdDeployment
85 config: {get_resource: InstanceIdConfig}
86 server: {get_resource: deployed-server}
87 depends_on: UpgradeInitDeployment
90 type: OS::Heat::SoftwareConfig
96 mkdir -p $heat_outputs_path
98 echo -n $host > $heat_outputs_path.hostname
99 cat $heat_outputs_path.hostname
102 description: hostname
104 HostsEntryDeployment:
105 type: OS::Heat::SoftwareDeployment
107 name: HostsEntryDeployment
108 config: {get_resource: HostsEntryConfig}
109 server: {get_resource: deployed-server}
111 DeployedServerBootstrapConfig:
112 type: OS::TripleO::DeployedServer::Bootstrap
114 server: {get_resource: deployed-server}
117 type: OS::TripleO::DeployedServer::ControlPlanePort
123 - - {get_attr: [HostsEntryDeployment, hostname]}
125 replacement_policy: AUTO
129 value: {get_resource: deployed-server}
133 - {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}
135 value: {get_attr: [HostsEntryDeployment, hostname]}