mirror of https://github.com/ceph/ceph-ansible.git
rgw: ability to copy ceph admin key on containerized
If we now set copy_admin_key while running a containerized scenario, the ceph admin key will be copied on the node. Signed-off-by: Sébastien Han <seb@redhat.com>pull/2431/head
parent
67f46d8ec3
commit
9c85280602
|
@ -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:
|
||||
ceph_config_keys:
|
||||
- /var/lib/ceph/bootstrap-rgw/{{ 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
|
||||
|
|
Loading…
Reference in New Issue