From 7173757a6190f4528d36053d82467c74dbf16b3f Mon Sep 17 00:00:00 2001 From: liyuenan Date: Wed, 18 Jan 2017 18:05:27 +0800 Subject: Ansible Module substitute for Shell Commands JIRA: COMPASS-520 After update ansible version to v3, keystone_user module only support v2 API. So we use Shell Commands now, but it will failed with high probability. Those Shell Commands should be instead by ansible modules to manage Identity users, projects or some other work like crate networks. Change-Id: I63d38b4a811a9c063ac4404da72787f594411b53 Signed-off-by: liyuenan --- deploy/deploy_host.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'deploy/deploy_host.sh') diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh index afc3bbeb..bf27b31a 100755 --- a/deploy/deploy_host.sh +++ b/deploy/deploy_host.sh @@ -18,6 +18,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 scp $ssh_args -r ${COMPASS_DIR}/deploy/playbook_done.py root@${MGMT_IP}:/opt/compass/bin/ansible_callbacks/playbook_done.py + ssh $ssh_args root@${MGMT_IP} mkdir -p /opt/ansible-modules + scp $ssh_args -r ${COMPASS_DIR}/deploy/adapters/ansible/ansible_modules/* root@${MGMT_IP}:/opt/ansible-modules # avoid nodes reboot to fast, cobbler can not give response (sleep $AYNC_TIMEOUT; rename_nics; reboot_hosts) & -- cgit 1.2.3-korg