and a hack to get nagios working
This commit is contained in:
parent
7ae974bf4d
commit
2a81d35f4a
4 changed files with 6 additions and 6 deletions
|
@ -12,3 +12,4 @@ eth0_nm: 255.255.255.0
|
|||
eth1_ip: 172.31.1.1
|
||||
eth1_nm: 255.255.255.0
|
||||
|
||||
public_ip: 204.85.14.4
|
||||
|
|
|
@ -14,6 +14,8 @@ volgroup: /dev/vg_guests
|
|||
eth0_ip: 172.31.2.22
|
||||
eth0_nm: 255.255.255.0
|
||||
|
||||
public_ip: 204.85.14.3
|
||||
|
||||
# This is consumed by the roles/fedora-web/main role
|
||||
sponsor: redhat
|
||||
datacenter: rdu
|
||||
|
|
|
@ -10,3 +10,4 @@ br0_ip: 172.31.2.11
|
|||
br0_nm: 255.255.255.0
|
||||
vpn: true
|
||||
|
||||
public_ip: 204.85.14.11
|
||||
|
|
|
@ -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].public_ip is defined %}
|
||||
address {{ hostvars[host].public_ip }}
|
||||
{% else %}
|
||||
address {{ host }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue