]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Skip missing RGW hosts in ceph.conf 58/head
authorAlessandro Corbelli <alessandro.corbelli@guest.it>
Thu, 20 Mar 2014 11:14:43 +0000 (12:14 +0100)
committerAlessandro Corbelli <alessandro.corbelli@guest.it>
Thu, 20 Mar 2014 11:14:43 +0000 (12:14 +0100)
roles/common/templates/ceph.conf.j2

index e015c7c1809791218d7ce48c53eba96ac6a48588..25fbc4da60af1806503ba2e3579883c7392bf38a 100644 (file)
@@ -64,6 +64,7 @@
 
 {% if radosgw %}
 {% for host in groups['rgws'] %}
+{% if hostvars[host]['ansible_hostname'] is defined %}
 [client.radosgw.gateway]
   host = {{ hostvars[host]['ansible_fqdn'] }}
   keyring = /etc/ceph/keyring.radosgw.gateway
@@ -71,5 +72,6 @@
   log file = /var/log/ceph/radosgw.log
   rgw data = /var/lib/ceph/radosgw/{{ hostvars[host]['ansible_hostname'] }}
   rgw print continue = false
+{% endif %}
 {% endfor %}
 {% endif %}