try to get nagios to talk to it over the vpn
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
a40e911e7b
commit
0cbad706fb
1 changed files with 2 additions and 6 deletions
|
@ -13,12 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% elif hostvars[host].ansible_default_ipv4 is defined %}
|
||||
{% if hostvars[host].ansible_default_ipv4.address is defined %}
|
||||
address {{ hostvars[host].ansible_default_ipv4.address }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].tun0_ip is defined %}
|
||||
address {{ hostvars[host].tun0_ip }}
|
||||
{% else %}
|
||||
address {{ host }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue