Use groupkey all

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-06-23 12:26:01 +00:00
parent 961a31313d
commit c9fdb3a256

View file

@ -18,7 +18,7 @@ define hostgroup{
define hostgroup{
hostgroup_name mincheckgrp
alias mincheckgrp
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}{{host}}, {% endif %}{% endfor %}
members {% for host in groups['all'] %}{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}{{host}}, {% endif %}{% endfor %}
}