mirror of
https://github.com/bashclub/zamba-lxc-toolbox
synced 2025-08-14 01:32:26 +00:00
fix
This commit is contained in:
parent
e39f81be4b
commit
b3d991ff86
@ -153,6 +153,25 @@ object Influxdb2Writer "influxdb2-writer" {
|
||||
bucket = "icinga"
|
||||
auth_token = "${INFLUX_ICINGA_TOKEN}"
|
||||
}
|
||||
EOF
|
||||
# KORREKTUR: Essenzielle Zonen-Konfiguration für den Master erstellen
|
||||
echo "[INFO] Erstelle Icinga2 Zonen-Konfiguration."
|
||||
local FQDN=$(hostname -f)
|
||||
bash -c "cat > /etc/icinga2/zones.conf" <<EOF
|
||||
object Endpoint "${FQDN}" {
|
||||
}
|
||||
|
||||
object Zone "master" {
|
||||
endpoints = [ "${FQDN}" ]
|
||||
}
|
||||
|
||||
object Zone "global-templates" {
|
||||
global = true
|
||||
}
|
||||
|
||||
object Zone "director-global" {
|
||||
global = true
|
||||
}
|
||||
EOF
|
||||
|
||||
# 6. Icinga Web 2 Konfigurationsdateien schreiben
|
||||
@ -358,12 +377,12 @@ EOF
|
||||
echo "[INFO] Icinga Director ist bereit."
|
||||
|
||||
echo "[INFO] Icinga Director Setup wird ausgeführt."
|
||||
# KORREKTUR: Der Befehl 'icingacli director config set' ist falsch. Die Konfiguration
|
||||
# wird stattdessen direkt in die Datei geschrieben.
|
||||
bash -c "cat > /etc/icingaweb2/modules/director/kickstart.ini" <<EOF
|
||||
[config]
|
||||
endpoint = "localhost"
|
||||
user = "director"
|
||||
endpoint = "$(hostname -f)"
|
||||
host = "127.0.0.1"
|
||||
port = "5665"
|
||||
username = "director"
|
||||
password = "${ICINGA_API_USER_PASS}"
|
||||
EOF
|
||||
icingacli director kickstart run
|
||||
|
Loading…
x
Reference in New Issue
Block a user