bundlewrap/bundles/icinga2/files/icinga2/groups.conf
Franzi d428572461
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
bundles/icinga2: add servicegroup for every service which has checks
2020-11-21 23:04:15 +01:00

16 lines
361 B
Plaintext

% for group in sorted(repo.groups):
object HostGroup "group-${group.name}" {
display_name = "bw group ${group.name}"
assign where "${group.name}" in host.vars.bw_groups
}
% endfor
% for bundle in sorted(bundles):
object ServiceGroup "bundle-${bundle}" {
display_name = "bw bundle ${bundle}"
assign where service.vars.bundle == "${bundle}"
}
% endfor