]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
keys are now copied from the first available mon host 76/head
authorDexter John Genterone <dexter.genterone@odecee.com.au>
Wed, 30 Apr 2014 08:02:07 +0000 (16:02 +0800)
committerDexter John Genterone <dexter.genterone@odecee.com.au>
Wed, 30 Apr 2014 08:02:07 +0000 (16:02 +0800)
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. :)

roles/mon/tasks/main.yml

index bf2255435979ddf0de51f6ea7a52caebcaf937ba..b0b0c3e545d218389e307fa30a13dbd21ecbd578 100644 (file)
@@ -34,7 +34,7 @@
 
 - name: Copy keys to the ansible server
   fetch: src={{ item }} dest=fetch/{{ fsid }}/{{ item }} flat=yes
-  when: ansible_fqdn == hostvars[groups['mons'][0]]['ansible_fqdn'] and cephx
+  when: cephx
   with_items:
     - /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