mds: to support copy_admin_keyring

pull/2518/head
vasishta p shastry 2018-04-10 18:09:43 +05:30 committed by Guillaume Abrioux
parent 6b59416f75
commit db3a5ce6d9
1 changed files with 13 additions and 0 deletions

View File

@ -3,11 +3,24 @@
set_fact:
docker_exec_cmd: "docker exec ceph-mds-{{ ansible_hostname }}"
- 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:
ceph_config_keys:
- /var/lib/ceph/bootstrap-mds/{{ 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: stat for ceph config and keys
local_action:
module: stat