DnsServers using get_attr
Nameservers are configured on the ctlplane subnets by the undercloud installer, the nameservers are used early during the deployment, prior to running os-net-config. Remove the default DnsServer's in THT, replacing it with an empty list and use get_attr to get the values for DnsServers for the overcloud from the ctlplane subnet(s). A conditinal is used in puppet/role.role.j2.yaml so that the parameter value is used whenever it is not [] (default) to provide backwards compatibilityi and in case the user want to use different DnsServers for the overcloud and undercloud. Partial: blueprint tripleo-routed-networks-templates Change-Id: I5f33e06ca3f4b13cc355e02156edd9d8a1f773cd
This commit is contained in:
parent
19381ecffb
commit
52ec1a018b
@ -52,6 +52,13 @@ parameters:
|
|||||||
default: 1300
|
default: 1300
|
||||||
description: The mtu of the OvS bridge
|
description: The mtu of the OvS bridge
|
||||||
type: number
|
type: number
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -48,6 +48,13 @@ parameters:
|
|||||||
description: The default route of the control plane network. (The parameter
|
description: The default route of the control plane network. (The parameter
|
||||||
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -41,6 +41,13 @@ parameters:
|
|||||||
default: ''
|
default: ''
|
||||||
description: IP address/subnet on the management network
|
description: IP address/subnet on the management network
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -18,4 +18,3 @@ parameter_defaults:
|
|||||||
StorageMgmtAllocationPools: [{"start": "fd00:fd00:fd00:4000::10", "end": "fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe"}]
|
StorageMgmtAllocationPools: [{"start": "fd00:fd00:fd00:4000::10", "end": "fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe"}]
|
||||||
TenantNetCidr: 172.16.0.0/24
|
TenantNetCidr: 172.16.0.0/24
|
||||||
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
||||||
DnsServers: ["8.8.8.8", "8.8.4.4"]
|
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -19,4 +19,3 @@ parameter_defaults:
|
|||||||
StorageMgmtAllocationPools: [{"start": "172.19.0.10", "end": "172.19.0.250"}]
|
StorageMgmtAllocationPools: [{"start": "172.19.0.10", "end": "172.19.0.250"}]
|
||||||
TenantNetCidr: 172.16.0.0/24
|
TenantNetCidr: 172.16.0.0/24
|
||||||
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
||||||
DnsServers: ["8.8.8.8", "8.8.4.4"]
|
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -18,5 +18,4 @@ parameter_defaults:
|
|||||||
StorageMgmtAllocationPools: [{"start": "172.19.0.10", "end": "172.19.0.250"}]
|
StorageMgmtAllocationPools: [{"start": "172.19.0.10", "end": "172.19.0.250"}]
|
||||||
TenantNetCidr: 172.16.0.0/24
|
TenantNetCidr: 172.16.0.0/24
|
||||||
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
TenantAllocationPools: [{"start": "172.16.0.10", "end": "172.16.0.250"}]
|
||||||
DnsServers: ["8.8.8.8", "8.8.4.4"]
|
|
||||||
BondInterfaceOvsOptions: bond_mode=balance-slb
|
BondInterfaceOvsOptions: bond_mode=balance-slb
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -75,7 +75,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -37,9 +37,9 @@ parameter_defaults:
|
|||||||
# Type: string
|
# Type: string
|
||||||
ControllerHostnameFormat: '%stackname%-controller-%index%'
|
ControllerHostnameFormat: '%stackname%-controller-%index%'
|
||||||
|
|
||||||
# DNS servers to use for the Overcloud
|
# DNS servers to use for the Overcloud (2 max for some implementations). If not set the nameservers configured in the ctlplane subnet(s) on the undercloud will be used.
|
||||||
# Type: comma_delimited_list
|
# Type: comma_delimited_list
|
||||||
DnsServers: ['8.8.8.8', '8,8.4.4']
|
DnsServers: []
|
||||||
|
|
||||||
# NTP servers list. Defaulted to pool.ntp.org in order to have a sane default for Pacemaker deployments when not configuring this parameter by default.
|
# NTP servers list. Defaulted to pool.ntp.org in order to have a sane default for Pacemaker deployments when not configuring this parameter by default.
|
||||||
# Type: comma_delimited_list
|
# Type: comma_delimited_list
|
||||||
|
@ -37,9 +37,9 @@ parameter_defaults:
|
|||||||
# Type: string
|
# Type: string
|
||||||
ControllerHostnameFormat: '%stackname%-controller-%index%'
|
ControllerHostnameFormat: '%stackname%-controller-%index%'
|
||||||
|
|
||||||
# DNS servers to use for the Overcloud
|
# DNS servers to use for the Overcloud (2 max for some implementations). If not set the nameservers configured in the ctlplane subnet(s) on the undercloud will be used.
|
||||||
# Type: comma_delimited_list
|
# Type: comma_delimited_list
|
||||||
DnsServers: ['8.8.8.8', '8,8.4.4']
|
DnsServers: []
|
||||||
|
|
||||||
# NTP servers list. Defaulted to pool.ntp.org in order to have a sane default for Pacemaker deployments when not configuring this parameter by default.
|
# NTP servers list. Defaulted to pool.ntp.org in order to have a sane default for Pacemaker deployments when not configuring this parameter by default.
|
||||||
# Type: comma_delimited_list
|
# Type: comma_delimited_list
|
||||||
|
@ -42,9 +42,9 @@ parameter_defaults:
|
|||||||
# Type: number
|
# Type: number
|
||||||
DatabaseCount: 3
|
DatabaseCount: 3
|
||||||
|
|
||||||
# DNS servers to use for the Overcloud
|
# DNS servers to use for the Overcloud (2 max for some implementations). If not set the nameservers configured in the ctlplane subnet(s) on the undercloud will be used.
|
||||||
# Type: comma_delimited_list
|
# Type: comma_delimited_list
|
||||||
DnsServers: ['8.8.8.8', '8,8.4.4']
|
DnsServers: []
|
||||||
|
|
||||||
# Number of Messaging nodes
|
# Number of Messaging nodes
|
||||||
# Type: number
|
# Type: number
|
||||||
|
@ -55,7 +55,9 @@ parameter_defaults:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{#- FIXME: These global parameters should be defined in a YAML file, e.g. network_data.yaml. #}
|
{#- FIXME: These global parameters should be defined in a YAML file, e.g. network_data.yaml. #}
|
||||||
# Define the DNS servers (maximum 2) for the overcloud nodes
|
# Define the DNS servers (maximum 2) for the overcloud nodes
|
||||||
DnsServers: ["8.8.8.8","8.8.4.4"]
|
# When the list is not set (empty) the nameservers on the ctlplane subnet(s) will be used.
|
||||||
|
# (ctlplane subnet(s) nameservers are confgured by the ``undercloud_nameservers`` option in ``undercloud.conf``)
|
||||||
|
DnsServers: []
|
||||||
# List of Neutron network types for tenant networks (will be used in order)
|
# List of Neutron network types for tenant networks (will be used in order)
|
||||||
NeutronNetworkType: 'vxlan,vlan'
|
NeutronNetworkType: 'vxlan,vlan'
|
||||||
# The tunnel type for the tenant network (vxlan or gre). Set to '' to disable tunneling.
|
# The tunnel type for the tenant network (vxlan or gre). Set to '' to disable tunneling.
|
||||||
|
@ -53,7 +53,9 @@ parameter_defaults:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{#- FIXME: These global parameters should be defined in a YAML file, e.g. network_data.yaml. #}
|
{#- FIXME: These global parameters should be defined in a YAML file, e.g. network_data.yaml. #}
|
||||||
# Define the DNS servers (maximum 2) for the overcloud nodes
|
# Define the DNS servers (maximum 2) for the overcloud nodes
|
||||||
DnsServers: ["8.8.8.8","8.8.4.4"]
|
# When the list is no set or empty, the nameservers on the ctlplane subnets will be used.
|
||||||
|
# (ctlplane subnets nameservers are controlled by the ``undercloud_nameservers`` option in ``undercloud.conf``)
|
||||||
|
DnsServers: []
|
||||||
# List of Neutron network types for tenant networks (will be used in order)
|
# List of Neutron network types for tenant networks (will be used in order)
|
||||||
NeutronNetworkType: 'vxlan,vlan'
|
NeutronNetworkType: 'vxlan,vlan'
|
||||||
# The tunnel type for the tenant network (vxlan or gre). Set to '' to disable tunneling.
|
# The tunnel type for the tenant network (vxlan or gre). Set to '' to disable tunneling.
|
||||||
|
@ -42,9 +42,12 @@ parameters:
|
|||||||
description: >
|
description: >
|
||||||
Whether the TripleO validations are enabled.
|
Whether the TripleO validations are enabled.
|
||||||
type: boolean
|
type: boolean
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers:
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
CtlplaneLocalPhysicalNetwork:
|
CtlplaneLocalPhysicalNetwork:
|
||||||
default: ctlplane
|
default: ctlplane
|
||||||
|
@ -27,6 +27,13 @@ parameters:
|
|||||||
description: The default route of the control plane network. (The parameter
|
description: The default route of the control plane network. (The parameter
|
||||||
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp: # Here for compatability, not used.
|
EC2MetadataIp: # Here for compatability, not used.
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -17,6 +17,13 @@ parameters:
|
|||||||
description: The default route of the control plane network. (The parameter
|
description: The default route of the control plane network. (The parameter
|
||||||
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp: # Here for compatability, not used.
|
EC2MetadataIp: # Here for compatability, not used.
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -23,6 +23,13 @@ parameters:
|
|||||||
The subnet CIDR of the control plane network. (The parameter is
|
The subnet CIDR of the control plane network. (The parameter is
|
||||||
automatically resolved from the ctlplane subnet's cidr attribute.)
|
automatically resolved from the ctlplane subnet's cidr attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -20,6 +20,13 @@ parameters:
|
|||||||
description: The default route of the control plane network. (The parameter
|
description: The default route of the control plane network. (The parameter
|
||||||
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
is automatically resolved from the ctlplane subnet's gateway_ip attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
EC2MetadataIp: # Here for compatability, not used.
|
EC2MetadataIp: # Here for compatability, not used.
|
||||||
default: ''
|
default: ''
|
||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
|
@ -30,7 +30,10 @@ parameters:
|
|||||||
type: json
|
type: json
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
InterfaceLocalMtu: # Override this via parameter_defaults
|
InterfaceLocalMtu: # Override this via parameter_defaults
|
||||||
default: 1500
|
default: 1500
|
||||||
|
@ -26,7 +26,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -26,7 +26,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -25,7 +25,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -30,7 +30,10 @@ parameters:
|
|||||||
type: json
|
type: json
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
UndercloudLocalMtu: # Override this via parameter_defaults
|
UndercloudLocalMtu: # Override this via parameter_defaults
|
||||||
default: 1500
|
default: 1500
|
||||||
|
@ -44,7 +44,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -42,7 +42,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -40,7 +40,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -42,7 +42,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -41,7 +41,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -40,7 +40,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -41,7 +41,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -40,7 +40,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -44,7 +44,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -41,7 +41,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -40,7 +40,10 @@ parameters:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
DnsServers: # Override this via parameter_defaults
|
DnsServers: # Override this via parameter_defaults
|
||||||
default: []
|
default: []
|
||||||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
|
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.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
EC2MetadataIp:
|
EC2MetadataIp:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -260,6 +260,13 @@ parameters:
|
|||||||
description: The IP address of the EC2 metadata server. (The parameter
|
description: The IP address of the EC2 metadata server. (The parameter
|
||||||
is automatically resolved from the ctlplane subnet's host_routes attribute.)
|
is automatically resolved from the ctlplane subnet's host_routes attribute.)
|
||||||
type: string
|
type: string
|
||||||
|
DnsServers: # Override this via parameter_defaults
|
||||||
|
default: []
|
||||||
|
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.
|
||||||
|
type: comma_delimited_list
|
||||||
|
|
||||||
ServerDeletionPolicy:
|
ServerDeletionPolicy:
|
||||||
description: Whether to retain or delete servers on deletion of the stack
|
description: Whether to retain or delete servers on deletion of the stack
|
||||||
@ -340,6 +347,9 @@ conditions:
|
|||||||
ec2metadaip_set:
|
ec2metadaip_set:
|
||||||
not:
|
not:
|
||||||
equals: [{get_param: EC2MetadataIp}, '']
|
equals: [{get_param: EC2MetadataIp}, '']
|
||||||
|
dnsservers_set:
|
||||||
|
not:
|
||||||
|
equals: [{get_param: DnsServers}, []]
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
{{server_resource_name}}:
|
{{server_resource_name}}:
|
||||||
@ -479,6 +489,11 @@ resources:
|
|||||||
# Return an empty string if there are no host_routes in the subnet. (Standalone and Container Undercloud)
|
# Return an empty string if there are no host_routes in the subnet. (Standalone and Container Undercloud)
|
||||||
expression: switch($.data = null => '', $.data != null => $.data.where($.destination = "169.254.169.254/32").nexthop.first())
|
expression: switch($.data = null => '', $.data != null => $.data.where($.destination = "169.254.169.254/32").nexthop.first())
|
||||||
data: {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, subnets, 0, host_routes]}
|
data: {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, subnets, 0, host_routes]}
|
||||||
|
DnsServers:
|
||||||
|
if:
|
||||||
|
- dnsservers_set
|
||||||
|
- {get_param: DnsServers}
|
||||||
|
- {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, subnets, 0, dns_nameservers]}
|
||||||
|
|
||||||
{%- for network in networks %}
|
{%- for network in networks %}
|
||||||
{{network.name}}IpSubnet: {get_attr: [{{network.name}}Port, ip_subnet]}
|
{{network.name}}IpSubnet: {get_attr: [{{network.name}}Port, ip_subnet]}
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
It is no longer a requirement to provide the parameter: ``DnsServers``
|
||||||
|
in the environment when deploying. Now ``get_attr`` on the server resource
|
||||||
|
is used to resolve the value from the ``ctlplane`` subnet's
|
||||||
|
``dns_nameservers`` attribute. A conditional is used to determine if the
|
||||||
|
user provided the parameter in the environment. If the user provided the
|
||||||
|
parameter, the user provided value is used.
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Since the the ``DnsServers`` can now be resolved from the ``ctlplane``
|
||||||
|
subnet(s) this parameter can be removed from the environment
|
||||||
|
(``network-environment.yaml``).
|
||||||
|
|
||||||
|
.. Note:: Prior to removing the parameter ensure that the property of
|
||||||
|
the ``ctlplane`` subnet(s) is correct. In case it is not, update
|
||||||
|
``undercloud.conf`` with the correct configuration and re-run the
|
||||||
|
``openstack undercloud install`` command to ensure the property
|
||||||
|
is set correctly.
|
||||||
|
|
||||||
|
.. Note:: ``DnsServers`` is now passed to the network config template when
|
||||||
|
the resource is created. Because of this the parameter must be
|
||||||
|
defined in the network config template, even if it is not used.
|
@ -131,8 +131,11 @@ environments:
|
|||||||
# in the generated config files.
|
# in the generated config files.
|
||||||
parameters:
|
parameters:
|
||||||
DnsServers:
|
DnsServers:
|
||||||
default: ['8.8.8.8', '8,8.4.4']
|
default: []
|
||||||
description: DNS servers to use for the Overcloud
|
description: >
|
||||||
|
DNS servers to use for the Overcloud (2 max for some implementations).
|
||||||
|
If not set the nameservers configured in the ctlplane subnet(s) on the
|
||||||
|
undercloud will be used.
|
||||||
type: comma_delimited_list
|
type: comma_delimited_list
|
||||||
# Dynamic vars based on roles
|
# Dynamic vars based on roles
|
||||||
ControllerOpenstackCount:
|
ControllerOpenstackCount:
|
||||||
|
Loading…
Reference in New Issue
Block a user