2021-03-25 16:52:04 +05:30
heat_template_version : wallaby
2016-12-11 14:54:16 -05:00
description : >
Post-deployment for the TripleO undercloud
parameters :
servers :
type : json
DeployedServerPortMap :
default : {}
type : json
2017-11-30 17:22:39 -05:00
UndercloudHomeDir :
description : The HOME directory where the stackrc and ssh credentials for the Undercloud will be installed. Set to /home/<user> to customize the location.
type : string
default : '/root'
2016-12-11 14:54:16 -05:00
AdminPassword : #supplied by tripleo-undercloud-passwords.yaml
type : string
description : The password for the keystone admin account, used for monitoring, querying neutron etc.
hidden : True
SSLCertificate :
description : >
The content of the SSL certificate (without Key) in PEM format.
type : string
default : ""
hidden : True
2018-01-18 15:49:11 -05:00
PublicSSLCertificateAutogenerated :
default : false
description : >
Whether the public SSL certificate was autogenerated or not.
type : boolean
2018-05-16 15:52:46 +02:00
InternalTLSCAFile :
default : '/etc/ipa/ca.crt'
type : string
description : Specifies the default CA cert to use if TLS is used for
services in the internal network.
2016-12-11 14:54:16 -05:00
SnmpdReadonlyUserPassword :
description : The user password for SNMPd with readonly rights running on all Overcloud nodes
type : string
hidden : true
2019-01-22 12:50:01 +01:00
MysqlRootPassword :
type : string
hidden : true
default : ''
2018-07-01 01:13:49 +02:00
DnsServers :
2018-02-14 22:04:17 +01:00
default : [ ]
2018-07-01 01:13:49 +02:00
description : >
DNS servers to use for the Overcloud (2 max for some implementations).
If not set the nameservers configured in the ctlplane subnet's
dns_nameservers attribute will be used.
2018-02-14 22:04:17 +01:00
type : comma_delimited_list
CtlplaneLocalPhysicalNetwork :
default : ctlplane
type : string
description : Physical network name for the ctlplane network local to the undercloud
UndercloudCtlplaneSubnets :
description : >
Dictionary of subnets to configure on the Undercloud ctlplan network
default : {}
type : json
UndercloudCtlplaneLocalSubnet :
description : The subnet local to the undercloud on the ctlplane network
default : ctlplane-subnet
type : string
UndercloudEnableRoutedNetworks :
description : Enable support for routed ctlplane networks.
default : False
type : boolean
UndercloudLocalMtu : # Override this via parameter_defaults
default : 1500
description : MTU to use for the Undercloud local_interface.
type : number
constraints :
- range : { min: 1000, max : 65536 }
2019-10-10 16:06:26 +02:00
UndercloudCtlplaneIPv6AddressMode :
default : dhcpv6-stateless
description : >
IPv6 address configuration mode for the undercloud provisioning network.
type : string
constraints :
- allowed_values : [ 'dhcpv6-stateless' , 'dhcpv6-stateful' ]
2018-11-05 13:56:19 +01:00
UndercloudCloudName :
type : string
default : 'undercloud'
description : Cloud name for the clouds.yaml
2019-04-25 21:23:57 -04:00
EndpointMap :
default : {}
description : Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type : json
2020-03-28 03:47:06 +01:00
CloudDomain :
default : 'localdomain'
type : string
description : >
The DNS domain used for the hosts. This must match the
overcloud_domain_name configured on the undercloud.
2016-12-11 14:54:16 -05:00
conditions :
2018-01-18 15:49:11 -05:00
tls_enabled :
or :
- not :
equals :
- {get_param : SSLCertificate}
- ""
- equals :
- {get_param : PublicSSLCertificateAutogenerated}
- true
2018-08-02 16:17:52 +03:00
ca_file_enabled :
and :
- not :
equals :
- {get_param : InternalTLSCAFile}
- ""
- tls_enabled
2016-12-11 14:54:16 -05:00
resources :
UndercloudPostConfig :
type : OS::Heat::SoftwareConfig
properties :
group : script
inputs :
2021-06-08 08:33:35 +05:30
- name : ssl_certificate
2018-11-05 13:56:19 +01:00
- name : cloud_name
2021-06-08 08:33:35 +05:30
- name : homedir
2016-12-11 14:54:16 -05:00
config : {get_file : ./undercloud_post.sh}
UndercloudPostDeployment :
2019-07-04 20:15:41 +05:30
type : OS::Heat::SoftwareDeploymentGroup
2016-12-11 14:54:16 -05:00
properties :
2017-09-28 19:04:49 -04:00
name : UndercloudPostDeployment
2016-12-11 14:54:16 -05:00
servers : {get_param : servers}
config : {get_resource : UndercloudPostConfig}
input_values :
ssl_certificate : {get_param : SSLCertificate}
2018-11-05 13:56:19 +01:00
cloud_name : {get_param : UndercloudCloudName}
2021-06-08 08:33:35 +05:30
homedir : {get_param : UndercloudHomeDir}
2018-02-14 22:04:17 +01:00
2018-11-05 13:56:19 +01:00
UndercloudPostPyConfig :
type : OS::Heat::SoftwareConfig
properties :
group : script
inputs :
- name : config
config : {get_file : ./undercloud_post.py}
UndercloudPostPyDeployment :
2019-07-04 20:15:41 +05:30
type : OS::Heat::SoftwareDeploymentGroup
2019-11-27 14:10:32 -05:00
depends_on : UndercloudPostDeployment
2018-11-05 13:56:19 +01:00
properties :
name : UndercloudPostPyDeployment
servers : {get_param : servers}
config : {get_resource : UndercloudPostPyConfig}
input_values :
2018-10-31 16:09:45 +01:00
config :
str_replace :
template : JSON
params :
JSON :
2018-11-05 13:56:19 +01:00
cloud_name : {get_param : UndercloudCloudName}
2018-10-31 16:09:45 +01:00
home_dir : {get_param : UndercloudHomeDir}
snmp_readonly_user_password : {get_param : SnmpdReadonlyUserPassword}
2019-01-22 12:50:01 +01:00
undercloud_db_password : {get_param : MysqlRootPassword}
2019-02-28 15:12:01 +01:00
undercloud_db_host : {get_param : [ DeployedServerPortMap, 'control_virtual_ip', fixed_ips, 0, ip_address]}
2018-10-31 16:09:45 +01:00
2018-02-14 22:04:17 +01:00
UndercloudCtlplaneNetworkConfig :
type : OS::Heat::SoftwareConfig
properties :
group : script
inputs :
- name : config
config : {get_file : ./undercloud_ctlplane_network.py}
UndercloudCtlplaneNetworkDeployment :
2019-07-04 20:15:41 +05:30
type : OS::Heat::SoftwareDeploymentGroup
2019-11-27 14:10:32 -05:00
depends_on : UndercloudPostDeployment
2018-02-14 22:04:17 +01:00
properties :
name : UndercloudCtlplaneNetworkDeployment
servers : {get_param : servers}
config : {get_resource : UndercloudCtlplaneNetworkConfig}
input_values :
config :
str_replace :
template : JSON
params :
JSON :
2018-11-05 13:56:19 +01:00
cloud_name : {get_param : UndercloudCloudName}
2020-03-28 03:47:06 +01:00
cloud_domain : {get_param : CloudDomain}
2018-02-14 22:04:17 +01:00
local_ip : {get_param : [ DeployedServerPortMap, 'control_virtual_ip', fixed_ips, 0, ip_address]}
local_subnet : {get_param : UndercloudCtlplaneLocalSubnet}
physical_network : {get_param : CtlplaneLocalPhysicalNetwork}
subnets : {get_param : UndercloudCtlplaneSubnets}
enable_routed_networks : {get_param : UndercloudEnableRoutedNetworks}
mtu : {get_param : UndercloudLocalMtu}
2018-11-05 13:56:19 +01:00
home_dir : {get_param : UndercloudHomeDir}
2019-10-10 16:06:26 +02:00
ipv6_address_mode : {get_param : UndercloudCtlplaneIPv6AddressMode}