From: Alessandro Corbelli Date: Wed, 19 Mar 2014 11:40:02 +0000 (+0100) Subject: Fix #49 X-Git-Tag: v1.0.0~375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50%2Fhead;p=ceph-ansible.git Fix #49 --- diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index 6319a4bbe..1ad35a76f 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -63,11 +63,13 @@ {% endif %} {% if radosgw %} -[client.radosgw.gateway] - host = {{ hostvars[host]['ansible_hostname'] }} +{% for host in groups['rgws'] %} +[client.radosgw.gateway.{{ hostvars[host]['ansible_hostname'] }}] + host = {{ hostvars[host]['ansible_fqdn'] }} keyring = /etc/ceph/keyring.radosgw.gateway rgw socket path = /tmp/radosgw.sock log file = /var/log/ceph/radosgw.log rgw data = /var/lib/ceph/radosgw/{{ hostvars[host]['ansible_hostname'] }} rgw print continue = false +{% endfor %} {% endif %}