From: Alessandro Corbelli Date: Wed, 26 Mar 2014 10:26:18 +0000 (+0100) Subject: Use ansible_hostname in RGW config inside ceph.conf X-Git-Tag: v1.0.0~367^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F62%2Fhead;p=ceph-ansible.git Use ansible_hostname in RGW config inside ceph.conf Fix #54 --- diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index 25fbc4da6..138faa3e8 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -66,7 +66,7 @@ {% for host in groups['rgws'] %} {% if hostvars[host]['ansible_hostname'] is defined %} [client.radosgw.gateway] - host = {{ hostvars[host]['ansible_fqdn'] }} + host = {{ hostvars[host]['ansible_hostname'] }} keyring = /etc/ceph/keyring.radosgw.gateway rgw socket path = /tmp/radosgw.sock log file = /var/log/ceph/radosgw.log