aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2015-08-24 04:16:24 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2015-08-24 21:36:11 -0400
commit60d16e487ba8641640a185369f3882e1227e56d7 (patch)
tree91bee28c66df828038a138b76096ad477da97d97 /deploy
parent0597d98b2169ec834bcdb18ea6e11ba59120e529 (diff)
bug fix:deploy failed at a new machine because of ansible-playbook's permission
JIRA: COMPASS-16 Change-Id: Ic410fa78521ef8c2b5de0f976963aeb7e0486f76 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/compass_vm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index fb7e6ab9..34b2b271 100644
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -17,7 +17,7 @@ function install_compass_core() {
log_info "install_compass_core enter"
sed -i "s/mgmt_next_ip:.*/mgmt_next_ip: ${COMPASS_SERVER}/g" $WORK_DIR/installer/compass-install/install/group_vars/all
echo "compass_nodocker ansible_ssh_host=$MGMT_IP ansible_ssh_port=22" > $inventory_file
- PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook -e pipeline=true --private-key=$rsa_file --user=root --connection=ssh --inventory-file=$inventory_file $WORK_DIR/installer/compass-install/install/compass_nodocker.yml
+ PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' python `which ansible-playbook` -e pipeline=true --private-key=$rsa_file --user=root --connection=ssh --inventory-file=$inventory_file $WORK_DIR/installer/compass-install/install/compass_nodocker.yml
exit_status=$?
rm $inventory_file
log_info "install_compass_core exit"