osd: to support copy_admin_key

pull/2518/head
vasishta p shastry 2018-04-10 18:51:50 +05:30 committed by Guillaume Abrioux
parent db3a5ce6d9
commit e1a1f81b6f
1 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,22 @@
--- ---
- name: set config and keys paths - name: set_fact admin_keyring
set_fact:
admin_keyring:
- "/etc/ceph/{{ cluster }}.client.admin.keyring"
when:
- copy_admin_key
- name: set_fact ceph_config_keys
set_fact: set_fact:
ceph_config_keys: ceph_config_keys:
- /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring - /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring
- name: merge ceph_config_keys and admin_keyring
set_fact:
ceph_config_keys: "{{ ceph_config_keys + admin_keyring }}"
when:
- copy_admin_key
- name: wait for ceph.conf and keys - name: wait for ceph.conf and keys
local_action: local_action:
module: wait_for module: wait_for