Hello,
I am trying to deploy Icinga setup with distributed topology in HA mode. I am not using director, we have own playbooks to setup sattelite and masters.
zones.conf on Masters node:
object Endpoint "ici01.bm01" {
host = "192.168.240.41"
}
object Endpoint "ici02.bm01" {
host = "192.168.240.42"
}
object Zone "bm01" {
endpoints = [ "ici01.bm01", "ici02.bm01" ]
}
object Endpoint "pve01.lab01" {
host = "192.168.90.11"
}
object Endpoint "pve02.lab01" {
host = "192.168.90.12"
}
object Zone "lab01" {
endpoints = [ "pve01.lab01", "pve02.lab01" ]
parent = "bm01"
}
Ici01 + ici02 are Icinga masters and pve01 and pve02 are Icinga satellites which connect to masters. There are also agents connection to satellite.
I am building zones.conf on satteline nodes by command:
icinga2 node setup --cn pve01.lab01.bmcom.com --zone lab01 --parent_zone bm01 --endpoint ici01.bm01,192.168.240.41 --endpoint ici02.bm01,192.168.240.42 --ticket 20775e440f50b920bbb347194370ee64a8a3b008 --trustedcert /var/lib/icinga2/certs//ca.crt --accept-config --accept-commands --disable-confd
Generated zones.conf on satellite node:
object Endpoint "ici01.bm01" {
host = "192.168.240.41"
}
object Endpoint "ici02.bm01" {
host = "192.168.240.42"
}
object Zone "bm01" {
endpoints = [ "ici01.bm01", "ici02.bm01" ]
}
object Endpoint "pve01.lab01" {
}
object Zone "lab01" {
endpoints = [ "pve01.lab01" ]
parent = "bm01"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
You can see, there is missing pve02 node with IP address. How to achieve this by icinga node setup ? what is the best way?
this is correct zones.conf that I want to achieve
object Endpoint "ici01.bm01" {
host = "192.168.240.41"
}
object Endpoint "ici02.bm01" {
host = "192.168.240.42"
}
object Zone "bm01" {
endpoints = [ "ici01.bm01", "ici02.bm01" ]
}
object Endpoint "pve01.lab01" {
host = "192.168.90.11"
}
object Endpoint "pve01.lab01" {
host = "192.168.240.12"
}
object Zone "lab01" {
endpoints = [ "pve01.lab01", "pve02.lab01" ]
parent = "bm01"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}