summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-03-11 16:43:13 +0800
committerJustin chi <chigang@huawei.com>2016-03-11 09:35:17 +0000
commit108714f8009dc9889ff16d0acce514eb7273853f (patch)
tree91470776428022eff2bfc27bd26f08d8455956b9
parentfd79871eacc5e23532ba2b45381c2c2d7a468761 (diff)
bugfix: set env varibal ADAPTER_OS_PATTERN according to OS_VERSION
JIRA: COMPASS-340 Change-Id: Ia676623ac7e19a4455aa911e2df7ac788e9b4f9e Signed-off-by: carey.xu <carey.xuhan@huawei.com>
-rw-r--r--deploy/conf/cluster.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/deploy/conf/cluster.conf b/deploy/conf/cluster.conf
index f741895b..cae78be3 100644
--- a/deploy/conf/cluster.conf
+++ b/deploy/conf/cluster.conf
@@ -1,10 +1,13 @@
-# for Operating System
-export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-14\.04\.3.*'}
-#export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*15.*'}
-
# trustry/centos7
export OS_VERSION=${OS_VERSION:-"trusty"}
+# for Operating System
+if [ $OS_VERSION = 'trusty' ];then
+ export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-14\.04\.3.*'}
+else
+ export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*15.*'}
+fi
+
# liberty/kilo/juno
export OPENSTACK_VERSION=${OPENSTACK_VERSION:-"liberty"}