diff options
Diffstat (limited to 'deploy/deploy_host.sh')
-rwxr-xr-x[-rw-r--r--] | deploy/deploy_host.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh index e7dedb89..b87a74d3 100644..100755 --- a/deploy/deploy_host.sh +++ b/deploy/deploy_host.sh @@ -1,3 +1,4 @@ +#!/bin/bash function deploy_host(){ ssh $ssh_args root@${MGMT_IP} mkdir -p /opt/compass/bin/ansible_callbacks @@ -5,7 +6,13 @@ function deploy_host(){ reboot_hosts - python ${COMPASS_DIR}/deploy/client.py --compass_server="${HTTP_SERVER_URL}" \ + if [[ "$REDEPLOY_HOST" == true ]]; then + deploy_flag="redeploy" + else + deploy_flag="deploy" + fi + + python ${COMPASS_DIR}/deploy/client.py --deploy_flag=$deploy_flag --compass_server="${HTTP_SERVER_URL}" \ --compass_user_email="${COMPASS_USER_EMAIL}" --compass_user_password="${COMPASS_USER_PASSWORD}" \ --cluster_name="${CLUSTER_NAME}" --language="${LANGUAGE}" --timezone="${TIMEZONE}" \ --hostnames="${HOSTNAMES}" --partitions="${PARTITIONS}" --subnets="${SUBNETS}" \ |