ansible/roles/icinga/templates/icinga2/zones.conf.j2

29 lines
429 B
Plaintext
Raw Normal View History

object Endpoint "{{ ansible_fqdn }}" {
}
object Zone "master" {
endpoints = [ "{{ ansible_fqdn }}" ]
}
{% for host in groups['all'] %}
{% if host != ansible_fqdn %}
object Endpoint "{{ host }}" {
host = "{{ host }}"
}
object Zone "{{ host }}" {
endpoints = [ "{{ host }}" ]
parent = "master"
}
{% endif %}
{% endfor %}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}