diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-10-12 20:15:22 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-10-13 11:37:11 +0800 |
commit | 85d42c56cafb1b7426677c85f5fa0874c0858568 (patch) | |
tree | ef51561e1bbd92104713b5f2cd24861e5e942a81 /deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml | |
parent | 2cbacbc060805b446769def612253798f3b7fb03 (diff) |
make internal vip and public vip into one group
JIRA: COMPASS-88
Change-Id: Ie40033b99d29e79c6a50b3073f4147109a02d7fa
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml index 77029b81..5bce443c 100644 --- a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml +++ b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml @@ -3,22 +3,8 @@ template: src=cinder.conf dest=/etc/cinder/cinder.conf - name: sync cinder db - shell: su -s /bin/sh -c "cinder-manage db sync" cinder && cinder - register: result - run_once: True - until: result.rc == 0 - retries: 5 - delay: 3 + cinder_manage: action=dbsync notify: - restart cinder control serveice - meta: flush_handlers - -- name: upload cinder keystone register script - template: src=cinder_init.sh dest=/opt/cinder_init.sh mode=0744 - -- name: run cinder register script - shell: for i in {0..5}; do /opt/cinder_init.sh && touch cinder_init_complete; if [ $? != 0 ]; then sleep 5; else break; fi; done - run_once: True - args: - creates: cinder_init_complete |