and logic is hard

This commit is contained in:
Stephen Smoogen 2017-05-02 20:40:24 +00:00
parent d91c270696
commit 9064b111f3

View file

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