diff options
author | carey.xu <carey.xuhan@huawei.com> | 2016-01-20 18:00:46 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2016-01-21 14:52:16 +0000 |
commit | 7dbe3c16fc7eadfa9e3a4ae182ec9d61ce8f292f (patch) | |
tree | e965cc2d3e7e35944fb8c526a1b6326abf062622 /deploy/deploy_host.sh | |
parent | 49969489169623beeb31d19f6a8a167a67c69417 (diff) |
bugfix for jumpserver on ubuntu 14.04.3
Change-Id: I59a41ca1ec2c0e576b590d5de39c04cd19273614
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
(cherry picked from commit 4a4a18e97eed73c1b82ae83b65cd765160f8ae6c)
Diffstat (limited to 'deploy/deploy_host.sh')
-rwxr-xr-x | deploy/deploy_host.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh index f8feacbf..b7859d37 100755 --- a/deploy/deploy_host.sh +++ b/deploy/deploy_host.sh @@ -5,7 +5,8 @@ function deploy_host(){ ssh $ssh_args root@${MGMT_IP} mkdir -p /opt/compass/bin/ansible_callbacks scp $ssh_args -r ${COMPASS_DIR}/deploy/status_callback.py root@${MGMT_IP}:/opt/compass/bin/ansible_callbacks/status_callback.py - reboot_hosts + # avoid nodes reboot to fast, cobbler can not give response + nohup bash -c "sleep 20;reboot_hosts" & if [[ "$REDEPLOY_HOST" == true ]]; then deploy_flag="redeploy" |