Add in a test to make that the nagios templates try to add in groups

with no vpn.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
Stephen Smoogen 2021-08-27 11:05:40 -04:00
parent 58c451d6ed
commit 2272ab1f6f

View file

@ -3,7 +3,7 @@
define hostgroup {
hostgroup_name vpnclients
alias vpnclients
members {% for host in groups['all']|sort %}{% if ( hostvars[host].vpn == true ) and ( hostvars[host].nagios_Can_Connect == true ) %}{{host}},{% endif %} {% endfor %}
members {% for host in groups['all']|sort %}{% if ( hostvars[host].vpn == true ) and ( hostvars[host].nagios_Can_Connect == true ) and (host not in group['ocp_stg', 'ocp']) %}{{host}},{% endif %}{% endfor %}
}
# TODO: Add !bastion02.iad2.fedoraproject.org above when it exists.