ansible-role-icinga2/templates/groups.conf.j2

16 lines
438 B
Text
Raw Normal View History

2021-01-03 15:10:04 +00:00
# {{ ansible_managed }}
{% for name, group in icinga2_host_groups.items() %}
object HostGroup "{{ name }}" {
display_name = "{{ group.display_name|default(name) }}"
assign where {{ group.assign }}
}
{% endfor %}
{% for name, group in icinga2_service_groups.items() %}
object ServiceGroup "{{ name }}" {
display_name = "{{ group.display_name|default(name) }}"
assign where match("{{ group.match }}", service.name)
}
{% endfor %}