Merge pull request #58 from guestisp/skip-missing-hosts-from-rgw-conf

Skip missing RGW hosts in ceph.conf
pull/59/head
Leseb 2014-03-20 13:42:09 +01:00
commit e6c162167c
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 %}