]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Allow to propagate cluster name to ceph-fetch-keys
author9seconds <nineseconds@yandex.ru>
Fri, 7 Oct 2016 06:06:21 +0000 (09:06 +0300)
committer9seconds <nineseconds@yandex.ru>
Fri, 7 Oct 2016 06:06:22 +0000 (09:06 +0300)
ceph-fetch-keys role currently works only if cluster name is 'ceph'.
This commit allows to set custom cluster name in 'defaults' in the same
fashion as other roles do.

roles/ceph-fetch-keys/defaults/main.yml
roles/ceph-fetch-keys/tasks/main.yml

index aae9a53517b2f195980fdaa4eb99315e1e040929..c69b2b79552c8b93b953e1af7790a11541c814d0 100644 (file)
@@ -1,3 +1,4 @@
 ---
 
 fetch_directory: fetch/
+cluster: ceph
index c6da11e724cf0af7545473ff3632094a0f36a2d9..2fb02ded7e394cf0db9fe9c82c2c202174950fab 100644 (file)
@@ -21,6 +21,6 @@
   run_once: true
   with_items:
     - "{{ ceph_keys.stdout_lines }}"
-    - /var/lib/ceph/bootstrap-osd/ceph.keyring
-    - /var/lib/ceph/bootstrap-rgw/ceph.keyring
-    - /var/lib/ceph/bootstrap-mds/ceph.keyring
+    - "/var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring"
+    - "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring"
+    - "/var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring"