Merge pull request #39 from guestisp/fix-ceph-conf-if-mons-unreachable

Fix ceph.conf if mons are unreachable
pull/40/head
Leseb 2014-03-12 16:00:18 +01:00
commit 69564c14c6
1 changed files with 2 additions and 0 deletions

View File

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