summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-openstack
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-01-16 16:55:17 +0800
committerJustin chi <chigang@huawei.com>2016-01-30 05:16:47 +0000
commitc18316e7551812933def751fc7485c5bd57d4f3a (patch)
tree5468138bb93e2793724c08f4c9e8e93507d44c00 /deploy/adapters/ansible/roles/ceph-openstack
parenta7664d66d61424d6e931daf14e0cc50b82db76a7 (diff)
Use ceph_adm node to create global config
JIRA: COMPASS-276 - use ceph_adm for global config Change-Id: I9229699909aff6ba0f0f429e8a883746cf37e5dc Signed-off-by: grakiss <grakiss.wanglei@huawei.com> (cherry picked from commit 36ab89d5ddcd76c2bf7c7db5e6d60887ae44b12f)
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-openstack')
-rwxr-xr-xdeploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml b/deploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml
index 8433d7cb..12afa7b7 100755
--- a/deploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml
+++ b/deploy/adapters/ansible/roles/ceph-openstack/tasks/ceph_openstack_pre.yml
@@ -2,7 +2,7 @@
- name: gen ceph uuid
shell: uuidgen
register: ceph_uuid
- run_once: True
+ run_once: true
tags:
- ceph_copy_secret
@@ -12,7 +12,7 @@
src: "secret.j2"
dest: "/tmp/secret.xml"
mode: "0777"
- run_once: True
+ when: inventory_hostname in groups['ceph_adm']
tags:
- ceph_copy_secret
@@ -23,11 +23,11 @@
- images
- backups
- vms
- run_once: True
-
+ when: inventory_hostname in groups['ceph_adm']
+
- name: create ceph users for openstack
shell: ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rx pool=images' && ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images'
- run_once: True
+ when: inventory_hostname in groups['ceph_adm']
- name: send glance key to controller nodes
shell: ceph auth get-or-create client.glance | tee /etc/ceph/ceph.client.glance.keyring && chown glance:glance /etc/ceph/ceph.client.glance.keyring
@@ -35,7 +35,7 @@
- name: send cinder key to compute nodes
shell: ceph auth get-or-create client.cinder | tee /etc/ceph/ceph.client.cinder.keyring && chown cinder:cinder /etc/ceph/ceph.client.cinder.keyring
- when: inventory_hostname in groups['compute']
+ when: inventory_hostname in groups['compute']
tags:
- ceph_send_key