]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Use ansible_hostname in RGW config inside ceph.conf 62/head
authorAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 26 Mar 2014 10:26:18 +0000 (11:26 +0100)
committerAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 26 Mar 2014 10:26:18 +0000 (11:26 +0100)
Fix #54

roles/common/templates/ceph.conf.j2

index 25fbc4da60af1806503ba2e3579883c7392bf38a..138faa3e8cd2e3cd1e045638ffd263c276158ff9 100644 (file)
@@ -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