Add the ability to select a binding interface for the monitors.
Closes: #20
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
cephx: true
fsid: 4a158d27-f750-41d5-9e7f-26ce4c9d2d45
+# Monitors options
+monitor_interface: eth1
+
# OSD options
journal_size: 100
pool_default_pg_num: 128
{% for host in groups['mons'] %}
[mon.{{ hostvars[host]['ansible_hostname'] }}]
host = {{ hostvars[host]['ansible_hostname'] }}
- mon addr = {{ hostvars[host]['ansible_eth1']['ipv4']['address'] }}
+ mon addr = {{ hostvars[host]['ansible_' + monitor_interface ]['ipv4']['address'] }}
{% endfor %}
[osd]