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

25 lines
493 B
Text
Raw Normal View History

2021-01-03 15:10:04 +00:00
# {{ ansible_managed }}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
{% for endpoint, host in icinga2_endpoints.items() %}
object Endpoint "{{ endpoint }}" {
host = "{{ host }}"
}
{% endfor %}
{% for zone_name, zone in icinga2_zones.items() %}
object Zone "{{ zone_name }}" {
{% if zone.parent is defined %}
parent = "{{ zone.parent }}"
{% endif %}
endpoints = [ "{{ zone.endpoints|join('", "')}}" ]
}
{% endfor %}