mirror of https://github.com/ceph/ceph-ansible.git
Fix ceph.conf if mons are unreachable
parent
2b5f5d9877
commit
2530083751
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue