are we using this correctly

This commit is contained in:
Stephen Smoogen
2017-05-02 20:23:45 +00:00
parent 058204b98b
commit 77197e7b40
5 changed files with 12 additions and 1 deletions

View File

@@ -267,3 +267,5 @@ nagios_Check_Services:
httpd: false
nagios_NoCheck_Services:
vpn: false

View File

@@ -14,3 +14,6 @@ vpn: true
ssh_hostnames:
- bastion.fedoraproject.org
- bastion02.fedoraproject.org
nagios_NoCheck_Services:
vpn:true

View File

@@ -11,3 +11,6 @@ eth0_ip: 204.85.14.1
eth0_nm: 255.255.255.192
eth1_ip: 172.31.1.1
eth1_nm: 255.255.255.0
nagios_NoCheck_Services:
vpn:true

View File

@@ -9,3 +9,6 @@ postfix_group: vpn
br0_ip: 204.85.14.4
br0_nm: 255.255.255.192
vpn: true
nagios_NoCheck_Services:
vpn:true

View File

@@ -3,6 +3,6 @@
define hostgroup {
hostgroup_name vpnclients
alias vpnclients
members {% for host in groups['all'] %}{% if hostvars[host].vpn %}{{host}},{% endif %} {% endfor %}
members {% for host in groups['all'] %}{% if hostvars[host].vpn and (hostvars[host].NoCheckServices['vpn'] == true) %}{{host}},{% endif %} {% endfor %}
}