keys are now copied from the first available mon host

since we're now using fsid for the directory name, it should be safe to
just copy the keys from all mon hosts. Once they are copied, the rest of
the hosts will just skip copying. :)
pull/76/head
Dexter John Genterone 2014-04-30 16:02:07 +08:00
parent 48c1dcd92b
commit 728e80df5c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
- name: Copy keys to the ansible server - name: Copy keys to the ansible server
fetch: src={{ item }} dest=fetch/{{ fsid }}/{{ item }} flat=yes fetch: src={{ item }} dest=fetch/{{ fsid }}/{{ item }} flat=yes
when: ansible_fqdn == hostvars[groups['mons'][0]]['ansible_fqdn'] and cephx when: cephx
with_items: with_items:
- /etc/ceph/ceph.client.admin.keyring # just in case another application needs it - /etc/ceph/ceph.client.admin.keyring # just in case another application needs it
- /var/lib/ceph/bootstrap-osd/ceph.keyring # this handles the non-colocation case - /var/lib/ceph/bootstrap-osd/ceph.keyring # this handles the non-colocation case