mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #39 from guestisp/fix-ceph-conf-if-mons-unreachable
Fix ceph.conf if mons are unreachablepull/40/head
commit
69564c14c6
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue