{{range .}}
object Endpoint "{{.Name}}" {
	host = "{{.Icinga2.Host}}"
	port = "{{.Icinga2.Port}}"
}
{{end}}

object Zone "master" {
	endpoints = [
{{range .}}
		"{{.Name}}",
{{end}}
	]
}

object Zone "global-templates" {
	global = true
}

object Zone "director-global" {
	global = true
}
