]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: run ceph-create-keys after startup for kraken release 1230/head
authorMusee Ullah <lae@lae.is>
Tue, 17 Jan 2017 12:13:43 +0000 (21:13 +0900)
committerMusee Ullah <lae@lae.is>
Tue, 17 Jan 2017 13:51:39 +0000 (22:51 +0900)
roles/ceph-mon/tasks/ceph_keys.yml

index 580b7d8cdbe2a98adc5d9495979391285447decc..7710669ed068d21fca128fb0f508d37c32672107 100644 (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
 # the admin key is not instantaneously created so we have to wait a bit
 - name: "wait for {{ cluster }}.client.admin.keyring exists"