From 86eb75c8201504316e2b1cd3ad5df21e54fd2171 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Sat, 30 Sep 2017 16:21:04 +0800 Subject: Add customized DNS server support 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 (cherry picked from commit 7b110b32e0688896967703dc2bfe7192d469164f) --- deploy/conf/compass.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/conf/compass.conf b/deploy/conf/compass.conf index 2c47ac48..98ba3027 100644 --- a/deploy/conf/compass.conf +++ b/deploy/conf/compass.conf @@ -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 OFFLINE_DEPLOY=${OFFLINE_DEPLOY:-'Disable'} -- cgit 1.2.3-korg