aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters')
-rw-r--r--deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml2
-rw-r--r--deploy/adapters/ansible/roles/glance/tasks/glance_config.yml2
-rw-r--r--deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml2
3 files changed, 3 insertions, 3 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 85556a5a..b06aac50 100644
--- a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml
+++ b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml
@@ -4,6 +4,6 @@
- name: sync cinder db
#cinder_manage: action=dbsync
- shell: cinder-manage db sync
+ shell: su -s /bin/sh -c 'cinder-manage db sync' cinder
notify:
- restart cinder control serveice
diff --git a/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml b/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
index 4cd71ffc..2e024675 100644
--- a/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
+++ b/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
@@ -1,7 +1,7 @@
---
- name: sync glance db
#glance_manage: action=dbsync
- shell: glance-manage db sync
+ shell: su -s /bin/sh 'glance-manage db sync' glance
ignore_errors: True
notify:
- restart glance services
diff --git a/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml b/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml
index 6c39da8d..2ef7803d 100644
--- a/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml
+++ b/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml
@@ -1,7 +1,7 @@
---
- name: keystone-manage db-sync
#keystone_manage: action=dbsync
- shell: keystone-manage db_sync
+ shell: su -s /bin/sh -c 'keystone-manage db_sync' keystone
- name: wait for keystone ready
wait_for: port=35357 delay=3 timeout=10 host={{ internal_vip.ip }}