Merge pull request #141 from matthewrees/monitor-interface

monitor_interface template change
pull/146/head
Leseb 2014-11-11 10:55:41 +01:00
commit c8f2f6610e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ dummy:
## Monitor options
#
monitor_interface: eth1
#monitor_interface: eth1
#mon_osd_down_out_interval: 600
#mon_osd_min_down_reporters: 7 # number of OSDs per host + 1

View File

@ -68,7 +68,7 @@
{% if hostvars[host]['ansible_hostname'] is defined %}
[mon.{{ hostvars[host]['ansible_hostname'] }}]
host = {{ hostvars[host]['ansible_hostname'] }}
mon addr = {{ hostvars[host]['ansible_' + hostvars[host]['monitor_interface'] ]['ipv4']['address'] }}
mon addr = {{ hostvars[host]['ansible_' + monitor_interface]['ipv4']['address'] }}
{% endif %}
{% endfor %}