From: Alessandro Corbelli Date: Thu, 20 Mar 2014 11:14:43 +0000 (+0100) Subject: Skip missing RGW hosts in ceph.conf X-Git-Tag: v1.0.0~370^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=76233762035e83b8d5824cf666ef02288d9d7381;p=ceph-ansible.git Skip missing RGW hosts in ceph.conf --- diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index e015c7c18..25fbc4da6 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -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 %}