Unhardcode dns_nameservers
Related-Prod: PRODX-3456
Change-Id: Ic18703a639bb3c5b07987a4084d4aa3acc7bffe7
diff --git a/de/heat-templates/fragments/NetworkAccBM.yaml b/de/heat-templates/fragments/NetworkAccBM.yaml
index a5c02c8..ac3f194 100644
--- a/de/heat-templates/fragments/NetworkAccBM.yaml
+++ b/de/heat-templates/fragments/NetworkAccBM.yaml
@@ -5,6 +5,9 @@
type: string
control_network_cidr:
type: string
+ dns_nameservers:
+ type: json
+ default: []
resources:
diff --git a/de/heat-templates/fragments/NetworkAccVM.yaml b/de/heat-templates/fragments/NetworkAccVM.yaml
index 66515d2..7ec1a14 100644
--- a/de/heat-templates/fragments/NetworkAccVM.yaml
+++ b/de/heat-templates/fragments/NetworkAccVM.yaml
@@ -5,6 +5,9 @@
type: string
control_network_cidr:
type: string
+ dns_nameservers:
+ type: json
+ default: []
resources:
@@ -16,9 +19,7 @@
network: { get_resource: network }
enable_dhcp: true
cidr: { get_param: control_network_cidr }
- dns_nameservers:
- - 172.18.224.6
- - 172.18.176.6
+ dns_nameservers: { get_param: dns_nameservers }
router:
type: OS::Neutron::Router
properties:
diff --git a/de/heat-templates/top.yaml b/de/heat-templates/top.yaml
index 4d472c1..c1f27ad 100644
--- a/de/heat-templates/top.yaml
+++ b/de/heat-templates/top.yaml
@@ -10,6 +10,9 @@
description: >
ID of public network for which floating IP addresses will be allocated/
for baremetal case flat provision network for nodes
+ dns_nameservers:
+ type: json
+ default: []
control_network_cidr:
type: string
description: The CIDR of control network, used to detect control interface.
@@ -326,6 +329,7 @@
properties:
public_net_id: { get_param: public_net_id }
control_network_cidr: { get_param: control_network_cidr }
+ dns_nameservers: { get_param: dns_nameservers }
tun_network:
type: MCP2::NetworkTun