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 config: {get_resource: InstanceIdConfig}
85 server: {get_resource: deployed-server}
86 depends_on: UpgradeInitDeployment
89 type: OS::Heat::SoftwareConfig
95 mkdir -p $heat_outputs_path
97 echo -n $host > $heat_outputs_path.hostname
98 cat $heat_outputs_path.hostname
101 description: hostname
103 HostsEntryDeployment:
104 type: OS::Heat::SoftwareDeployment
106 config: {get_resource: HostsEntryConfig}
107 server: {get_resource: deployed-server}
109 DeployedServerBootstrapConfig:
110 type: OS::TripleO::DeployedServer::Bootstrap
112 server: {get_resource: deployed-server}
115 type: OS::TripleO::DeployedServer::ControlPlanePort
121 - - {get_attr: [HostsEntryDeployment, hostname]}
123 replacement_policy: AUTO
127 value: {get_resource: deployed-server}
131 - {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}
133 value: {get_attr: [HostsEntryDeployment, hostname]}