monitor_interface template change

This will fix the monitor_interface issue for Vagrant provisioning
while being preferred to using group_var entries for physical
deployments.
pull/141/head
Matthew Rees 2014-11-10 16:28:13 +02:00
parent 32bf2313d0
commit ec16fe31f3
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

@ -63,7 +63,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 %}