mon: run ceph-create-keys after startup for kraken release

pull/1230/head
Musee Ullah 2017-01-17 21:13:43 +09:00
parent c11cdb1589
commit 7636d09f92
No known key found for this signature in database
GPG Key ID: FAF190AD6EB56A44
1 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,15 @@
--- ---
- name: collect admin and bootstrap keys (for or after kraken release)
command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }}
args:
creates: /etc/ceph/{{ cluster }}.client.admin.keyring
failed_when: false
changed_when: false
always_run: true
when:
- cephx
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
# NOTE (leseb): wait for mon discovery and quorum resolution # NOTE (leseb): wait for mon discovery and quorum resolution
# the admin key is not instantaneously created so we have to wait a bit # the admin key is not instantaneously created so we have to wait a bit
- name: "wait for {{ cluster }}.client.admin.keyring exists" - name: "wait for {{ cluster }}.client.admin.keyring exists"