nagios_server: update what variable nagios templates use for ipv4
We changed eth0_ip and eth0_ipv4 to eth0_ipv4_ip. Update the host templates. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
8caaee2b08
commit
2e548a91e6
9 changed files with 18 additions and 18 deletions
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -12,8 +12,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -13,8 +13,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
|
@ -12,8 +12,8 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% if hostvars[host].eth0_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ip }}
|
||||
{% if hostvars[host].eth0_ipv4_ip is defined %}
|
||||
address {{ hostvars[host].eth0_ipv4_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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue