Nagios: filter the hostgroups again

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2025-06-23 17:37:32 +02:00
parent 2695b3448a
commit 0b7bab72e6

View File

@@ -48,9 +48,9 @@ define hostgroup{
# Management hardware
#
define hostgroup {
hostgroup_name iad2_mgmt_systems
alias iad2_mgmt_systems
members {% for host in vars['iad2_management_hosts']|sort %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
hostgroup_name {{datacenter}}_mgmt_systems
alias {{datacenter}}_mgmt_systems
members {% for host in vars[datacenter+'_management_hosts']|sort %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
}