Improve RGW config section

Use hostname in socket and log.
Improve jinja template so when a var doesn't exist we don't indent the
next line.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
pull/208/head
Sébastien Han 2015-02-15 02:21:27 +01:00
parent 2a76fc5caa
commit 0095b34c88
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#jinja2: trim_blocks: "true", lstrip_blocks: "true"
# {{ ansible_managed }}
[global]
@ -140,8 +141,8 @@
{% endif %}
host = {{ hostvars[host]['ansible_hostname'] }}
keyring = /etc/ceph/radosgw.gateway.keyring
rgw socket path = /tmp/radosgw.sock
log file = /var/log/ceph/radosgw.log
rgw socket path = /tmp/radosgw-{{ hostvars[host]['ansible_hostname'] }}.sock
log file = /var/log/ceph/radosgw-{{ hostvars[host]['ansible_hostname'] }}.log
rgw data = /var/lib/ceph/radosgw/{{ hostvars[host]['ansible_hostname'] }}
rgw print continue = false
{% endif %}