aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts/docker-compose
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2020-01-15 18:05:55 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2020-01-16 16:34:16 +0100
commit4deaa15d1e8a9e0e7e0bfb26d4cf3c1b2450c1a1 (patch)
tree89fca984e19531021328ec5fd37d4895f2f537d9 /mcp/scripts/docker-compose
parent29f7bab413201b24fa09c70eb08a569c78d56f9f (diff)
all: Actually honor public DNS set in IDF
We currently do not configure linux:network:resolv:dns via reclass pillar data, so we don't actually enforce the public DNS set in the IDF file, but instead leave it to the OS to figure it out, which most of the time works fine, but it's not completely reliable. Change that behavior to instead enforce it via linux.network.resolv state across all cluster nodes. Change-Id: I4f82315a473fcbdc8573380cfcac1e30b44c3dd4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/scripts/docker-compose')
-rw-r--r--mcp/scripts/docker-compose/docker-compose.yaml.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/mcp/scripts/docker-compose/docker-compose.yaml.j2 b/mcp/scripts/docker-compose/docker-compose.yaml.j2
index 82c4178b6..04dc93f98 100644
--- a/mcp/scripts/docker-compose/docker-compose.yaml.j2
+++ b/mcp/scripts/docker-compose/docker-compose.yaml.j2
@@ -37,6 +37,10 @@ services:
hostname: cfg01
domainname: {{ conf.cluster.domain }}
privileged: true
+ dns:
+{%- for server in nm.dns_public %}
+ - {{ server }}
+{%- endfor %}
{%- if nm.cluster.has_baremetal_nodes %}
opnfv-fuel-maas:
container_name: "maas"
@@ -63,6 +67,10 @@ services:
hostname: mas01
domainname: {{ conf.cluster.domain }}
privileged: true
+ dns:
+{%- for server in nm.dns_public %}
+ - {{ server }}
+{%- endfor %}
ports:
- 5240:5240
{%- endif %}