Add customized DNS server support 59/43759/3
authorYifei Xue <xueyifei@huawei.com>
Sat, 30 Sep 2017 08:21:04 +0000 (16:21 +0800)
committerYifei Xue <xueyifei@huawei.com>
Thu, 5 Oct 2017 09:57:18 +0000 (17:57 +0800)
JIRA: -

Currently Compass uses the gateway of install network as the only
DNS server of host1 to 5. Sometimes it doesn't work in some
environments. This patch we add a variable named USER_NAMESERVER
which can be exported before deployment. It is used to store a
user defined DNS nameserver.

Change-Id: Id74889c20cf09ec7e25d882b56ab6331ee64cdcf
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
deploy/conf/compass.conf

index bcf295c..cc99ca5 100644 (file)
@@ -14,7 +14,7 @@ export COMPASS_EXTERNAL_GW=${COMPASS_EXTERNAL_GW:-}
 export LANGUAGE="EN"
 export TIMEZONE="America/Los_Angeles"
 export NTP_SERVER="$COMPASS_SERVER"
-export NAMESERVERS="$COMPASS_SERVER"
+export NAMESERVERS=${USER_NAMESERVER:-"$COMPASS_SERVER"}
 export COMPASS_REPO_PORT="5151"
 
 export COMPASS_DECK="compass4nfv/compass-deck"