Merge pull request #1213 from ceph/cephx-initial-mon

mon: only put mon initial key in mon kv when cephx is enabled
pull/1217/head
Sébastien Han 2017-01-02 13:43:22 +01:00 committed by GitHub
commit f1308b5f71
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
changed_when: false
always_run: true
run_once: true
when: is_initial_mon_keyring_in_kv.rc != 0
when:
- is_initial_mon_keyring_in_kv.rc != 0
- cephx
- 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