Fix ceph.conf if MDSs are not reachable

pull/40/head
Alessandro Corbelli 2014-03-12 16:13:06 +01:00
parent 69564c14c6
commit f363f63446
1 changed files with 2 additions and 0 deletions

View File

@ -56,7 +56,9 @@
{% if mds %}
[mds]
{% for host in groups['mdss'] %}
{% if hostvars[host]['ansible_hostname'] is defined %}
[mds.{{ hostvars[host]['ansible_hostname'] }}]
host = {{ hostvars[host]['ansible_hostname'] }}
{% endif %}
{% endfor %}
{% endif %}