From 76233762035e83b8d5824cf666ef02288d9d7381 Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Thu, 20 Mar 2014 12:14:43 +0100 Subject: [PATCH] Skip missing RGW hosts in ceph.conf --- roles/common/templates/ceph.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) 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 %}