Merge pull request #671 from squizzi/fix-admin-key-wait

Added when: cephx to prevent waiting on keyring with cephx: false
pull/673/head
Leseb 2016-04-01 11:11:43 +02:00
commit 9123c854ae
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
- name: wait for client.admin key exists - name: wait for client.admin key exists
wait_for: wait_for:
path: /etc/ceph/{{ cluster }}.client.admin.keyring path: /etc/ceph/{{ cluster }}.client.admin.keyring
when: cephx
- name: create ceph rest api keyring when mon is not containerized - name: create ceph rest api keyring when mon is not containerized
command: ceph --cluster {{ cluster }} auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/{{ cluster }}.client.restapi.keyring command: ceph --cluster {{ cluster }} auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/{{ cluster }}.client.restapi.keyring