summaryrefslogtreecommitdiffstats
path: root/deploy/conf
diff options
context:
space:
mode:
authorhu xinhui <xinhui_hu@foxmail.com>2017-08-30 15:36:13 +0800
committerhu xinhui <xinhui_hu@foxmail.com>2017-09-08 22:22:58 +0800
commit0d057d8e10fd5e29156516196ffec60ecb115087 (patch)
treecf0c2ca0caef922a1fd9e57f8c29173ba0f47aa3 /deploy/conf
parentacab17c36763b7679a6d761f438412e591347902 (diff)
Add k8s support
JIRA: - Add a new k8s scenario for compass Change-Id: Ic5f58a6152315333684e4f2752aaa0d5d870d9ee Signed-off-by: hu xinhui <xinhui_hu@foxmail.com>
Diffstat (limited to 'deploy/conf')
-rw-r--r--deploy/conf/cluster.conf6
-rw-r--r--deploy/conf/compass.conf5
2 files changed, 11 insertions, 0 deletions
diff --git a/deploy/conf/cluster.conf b/deploy/conf/cluster.conf
index e0c5655b..ddcbb6c3 100644
--- a/deploy/conf/cluster.conf
+++ b/deploy/conf/cluster.conf
@@ -23,5 +23,11 @@ fi
export ADAPTER_NAME="openstack_$OPENSTACK_VERSION"
export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes-$OPENSTACK_VERSION"
+if [[ "x"$KUBERNETES_VERSION != "x" ]]; then
+ export ADAPTER_NAME=kubernetes
+ export ADAPTER_FLAVOR_PATTERN=ansible-kubernetes
+ export ADAPTER_TARGET_SYSTEM_PATTERN='^kubernetes$'
+fi
+
export DEFAULT_ROLES=""
export VIP="10.1.0.222"
diff --git a/deploy/conf/compass.conf b/deploy/conf/compass.conf
index c3ea85c0..ba9d8a7d 100644
--- a/deploy/conf/compass.conf
+++ b/deploy/conf/compass.conf
@@ -19,6 +19,11 @@ export COMPASS_REPO_PORT="5151"
export COMPASS_DECK="compass4nfv/compass-deck"
export COMPASS_TASKS="compass4nfv/compass-tasks-osa"
+
+if [[ "x"$KUBERNETES_VERSION != "x" ]]; then
+ export COMPASS_TASKS="compass4nfv/compass-tasks-k8s"
+fi
+
export COMPASS_COBBLER="compass4nfv/compass-cobbler"
export COMPASS_DB="compass4nfv/compass-db"
export COMPASS_MQ="compass4nfv/compass-mq"