Fix ceph.conf if mons are unreachable

pull/39/head
Alessandro Corbelli 2014-03-12 15:34:54 +01:00
parent 2b5f5d9877
commit 2530083751
1 changed files with 2 additions and 0 deletions

View File

@ -31,9 +31,11 @@
[mon] [mon]
{% for host in groups['mons'] %} {% for host in groups['mons'] %}
{% if hostvars[host]['ansible_hostname'] is defined %}
[mon.{{ hostvars[host]['ansible_hostname'] }}] [mon.{{ hostvars[host]['ansible_hostname'] }}]
host = {{ hostvars[host]['ansible_hostname'] }} host = {{ hostvars[host]['ansible_hostname'] }}
mon addr = {{ hostvars[host]['ansible_' + monitor_interface ]['ipv4']['address'] }} mon addr = {{ hostvars[host]['ansible_' + monitor_interface ]['ipv4']['address'] }}
{% endif %}
{% endfor %} {% endfor %}
[osd] [osd]