From 1efa42d8098c5422b6f25179511160d41a9a875a Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Wed, 19 Mar 2014 12:40:02 +0100 Subject: [PATCH] Fix #49 --- roles/common/templates/ceph.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 %} -- 2.47.3