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
Sébastien Han 2018-03-01 16:47:22 +01:00 committed by Guillaume Abrioux
parent 67f46d8ec3
commit 9c85280602
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:
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