Merge pull request #712 from ceph/monitor-interface-not-defined

Check to see if hostvars[host]['monitor_interface'] is defined
pull/715/head
Leseb 2016-04-13 22:19:33 +02:00
commit f772fe8f60
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ host = {{ hostvars[host]['ansible_fqdn'] }}
[mon.{{ hostvars[host]['ansible_hostname'] }}] [mon.{{ hostvars[host]['ansible_hostname'] }}]
host = {{ hostvars[host]['ansible_hostname'] }} host = {{ hostvars[host]['ansible_hostname'] }}
{% endif %} {% endif %}
{% if hostvars[host]['monitor_interface'] != "interface" %} {% if hostvars[host]['monitor_interface'] is defined and hostvars[host]['monitor_interface'] != "interface" %}
{% include 'mon_addr_interface.j2' %} {% include 'mon_addr_interface.j2' %}
{% else %} {% else %}
{% include 'mon_addr_address.j2' %} {% include 'mon_addr_address.j2' %}