aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"}