Allow to propagate cluster name to ceph-fetch-keys

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.
pull/1014/head
9seconds 2016-10-07 09:06:21 +03:00
parent bd50e64665
commit 0184469229
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
---
fetch_directory: fetch/
cluster: ceph

View 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"