summaryrefslogtreecommitdiffstats
path: root/deploy/compass_vm.sh
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-08-15 11:40:26 +0800
committerYifei Xue <xueyifei@huawei.com>2017-08-31 15:33:56 +0800
commit8c978370a123dccc0b93ee9bd2ba46f8167a2cc2 (patch)
treefe3b398de2de17e5c30ceea456dbe123bc1e6f69 /deploy/compass_vm.sh
parent760c966b5095fb0cfe0a2ac4014a337531a8df1d (diff)
Support offline deployment for nosdn no feature scenario
JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/compass_vm.sh')
-rwxr-xr-xdeploy/compass_vm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index 6d976560..cc0471ae 100755
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -137,11 +137,19 @@ function launch_compass() {
sed -i "s#^\(compass_db:\).*#\1 $COMPASS_DB#g" $group_vars
sed -i "s#^\(compass_mq:\).*#\1 $COMPASS_MQ#g" $group_vars
+ if [[ $OFFLINE_DEPLOY == "Enable" ]]; then
+ sed -i "s#.*\(compass_repo:\).*#\1 $COMPASS_REPO#g" $group_vars
+ else
+ sed -i "s/^\(compass_repo:.*\)/#\1/g" $group_vars
+ fi
sed -i "s#^\(host_ip:\).*#\1 $INSTALL_IP#g" $group_vars
sed -i "s#^\(install_subnet:\).*#\1 ${INSTALL_CIDR%/*}#g" $group_vars
sed -i "s#^\(install_prefix:\).*#\1 ${INSTALL_CIDR##*/}#g" $group_vars
sed -i "s#^\(install_netmask:\).*#\1 $INSTALL_NETMASK#g" $group_vars
sed -i "s#^\(install_ip_range:\).*#\1 $INSTALL_IP_RANGE#g" $group_vars
+
+ sed -i "s#^\(deck_port:\).*#\1 $COMPASS_DECK_PORT#g" $group_vars
+ sed -i "s#^\(repo_port:\).*#\1 $COMPASS_REPO_PORT#g" $group_vars
ansible-playbook $WORK_DIR/installer/compass-docker-compose/bring_up_compass.yml
}