Skip missing RGW hosts in ceph.conf

pull/58/head
Alessandro Corbelli 2014-03-20 12:14:43 +01:00
parent 7339a6542f
commit 7623376203
1 changed files with 2 additions and 0 deletions

View 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 %}