]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: ability to copy ceph admin key on containerized
authorSébastien Han <seb@redhat.com>
Thu, 1 Mar 2018 15:47:22 +0000 (16:47 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 5 Mar 2018 08:41:38 +0000 (09:41 +0100)
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>
(cherry picked from commit 9c85280602142fa1fb60c6f15c6d0c9e8c62d401)

roles/ceph-rgw/tasks/docker/copy_configs.yml

index fb80e01bebcd8ad74f199ffa037507df5c35446d..66e1730f9c7d72dd823382bb095fca9d96de74a4 100644 (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