mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #141 from matthewrees/monitor-interface
monitor_interface template changepull/146/head
commit
c8f2f6610e
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue