Configure heat DnsServers for undercloud install

The netconfig option dns_servers is defined from
DnsServers in t-h-t's net-config-undercloud.yaml.

Add missing configuration for the client as well, which
bounds nameservers defined in undercloud.conf's
undercloud_nameservers to the corresponding
DnsServers heat parameter.

Change-Id: I48d889e7a631682a221e2828fbc30a900562498f
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2018-03-05 11:03:34 +01:00
parent bc6be96087
commit 9254f8b894
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
features:
- |
Bind ``undercloud_nameservers`` defined in `undercloud.conf` to the
``DnsServers`` heat stack parameter. This ensures DNS
configuration applied via os-net-config undercloud install time as well.
That works additionally to ``UndercloudNameserver`` limited to the
ctlplane subnet DNS configuration executed at post-install steps only.

View File

@ -42,6 +42,7 @@ PARAMETER_MAPPING = {
'undercloud_public_host': 'CloudName', 'undercloud_public_host': 'CloudName',
'scheduler_max_attempts': 'NovaSchedulerMaxAttempts', 'scheduler_max_attempts': 'NovaSchedulerMaxAttempts',
'local_mtu': 'UndercloudLocalMtu', 'local_mtu': 'UndercloudLocalMtu',
'undercloud_nameservers': 'DnsServers'
} }
THT_HOME = os.environ.get('THT_HOME', THT_HOME = os.environ.get('THT_HOME',