From: Sébastien Han Date: Thu, 1 Mar 2018 15:47:22 +0000 (+0100) Subject: rgw: ability to copy ceph admin key on containerized X-Git-Tag: v3.0.28~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4b51f35e44c71395225d15e49bcb5a19116550e1;p=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 (cherry picked from commit 9c85280602142fa1fb60c6f15c6d0c9e8c62d401) --- diff --git a/roles/ceph-rgw/tasks/docker/copy_configs.yml b/roles/ceph-rgw/tasks/docker/copy_configs.yml index fb80e01be..66e1730f9 100644 --- a/roles/ceph-rgw/tasks/docker/copy_configs.yml +++ b/roles/ceph-rgw/tasks/docker/copy_configs.yml @@ -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