1 heat_template_version: pike
12 description: Name of keypair to assign to servers
16 # Require this so we can validate the parent passes the
25 default: 'deployed-server'
30 type: comma_delimited_list
35 software_config_transport:
36 default: POLL_SERVER_CFN
40 description: Optional scheduler hints to pass to nova
45 Command or script snippet to run on all overcloud nodes to
46 initialize the upgrade process. E.g. a repository switch.
48 deployment_swift_data:
54 type: OS::Heat::DeployedServer
56 name: {get_param: name}
57 software_config_transport: {get_param: software_config_transport}
58 deployment_swift_data: {get_param: deployment_swift_data}
61 type: OS::Heat::SoftwareConfig
68 - "if [[ -f /etc/resolv.conf.save ]] ; then rm /etc/resolv.conf.save; fi\n\n"
69 - get_param: UpgradeInitCommand
71 UpgradeInitDeployment:
72 type: OS::Heat::SoftwareDeployment
74 name: UpgradeInitDeployment
75 server: {get_resource: deployed-server}
76 config: {get_resource: UpgradeInitConfig}
80 type: OS::Heat::StructuredConfig
84 instance-id: {get_resource: deployed-server}
87 type: OS::Heat::StructuredDeployment
89 name: InstanceIdDeployment
90 config: {get_resource: InstanceIdConfig}
91 server: {get_resource: deployed-server}
92 depends_on: UpgradeInitDeployment
95 type: OS::Heat::SoftwareConfig
101 mkdir -p $heat_outputs_path
103 echo -n $host > $heat_outputs_path.hostname
104 cat $heat_outputs_path.hostname
107 description: hostname
109 HostsEntryDeployment:
110 type: OS::Heat::SoftwareDeployment
112 name: HostsEntryDeployment
113 config: {get_resource: HostsEntryConfig}
114 server: {get_resource: deployed-server}
116 DeployedServerBootstrapConfig:
117 type: OS::TripleO::DeployedServer::Bootstrap
119 server: {get_resource: deployed-server}
122 type: OS::TripleO::DeployedServer::ControlPlanePort
128 - - {get_attr: [HostsEntryDeployment, hostname]}
130 replacement_policy: AUTO
134 value: {get_resource: deployed-server}
138 - {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}
140 value: {get_attr: [HostsEntryDeployment, hostname]}
142 value: {get_attr: [deployed-server, os_collect_config]}