blob: 20514472cc61a1d5741ab7d037978264bffe8117 (
plain)
1
2
3
4
5
6
7
8
9
10
|
{% for groupname in groups.keys() | difference(['all','ungrouped'] + nagios_excluded_groups) %}
{% if groups[groupname] | reject('in', nagios_excluded_groups | map('extract', groups) | flatten) %}
define hostgroup {
hostgroup_name {{ groupname }}
alias {{ groupname | replace('_', ' ') | title }}
members {{ groups[groupname] | reject('in', nagios_excluded_groups | map('extract', groups) | flatten) | join(',') }}
}
{% endif %}
{% endfor %}
|