From f8e3fe0af2fed72bd8dfb1d92c8fbcb9325e920b Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Wed, 23 Jul 2025 17:10:09 +0200 Subject: [PATCH] Update install-service.sh --- src/icinga2/install-service.sh | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/icinga2/install-service.sh b/src/icinga2/install-service.sh index b162a8a..14d0961 100644 --- a/src/icinga2/install-service.sh +++ b/src/icinga2/install-service.sh @@ -74,6 +74,7 @@ _install() { install_icinga_module "ipl" "icingaweb2-module-ipl" install_icinga_module "reactbundle" "icingaweb2-module-reactbundle" + install_icinga_module "incubator" "icingaweb2-module-incubator" install_icinga_module "director" "icingaweb2-module-director" echo "[INFO] Systemd Services werden aktiviert." @@ -202,29 +203,14 @@ datasources: EOF chown grafana:grafana /etc/grafana/provisioning/datasources/influxdb.yaml - # 8. Nginx und Icinga2 API TLS Konfiguration - echo "[INFO] Nginx und Icinga2 API für TLS werden konfiguriert." + # 8. Nginx TLS Konfiguration + echo "[INFO] Nginx für TLS wird konfiguriert." mkdir -p /etc/nginx/ssl if [ ! -L /etc/nginx/ssl/fullchain.pem ]; then ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/nginx/ssl/fullchain.pem ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/nginx/ssl/privkey.pem fi - if ! id -u icinga >/dev/null 2>&1; then - useradd --system --shell /usr/sbin/nologin --home-dir /var/lib/icinga2 icinga - fi - usermod -a -G ssl-cert icinga - - bash -c "cat > /etc/icinga2/features-available/api.conf" < /etc/nginx/sites-available/icinga-stack" </dev/null - echo "[INFO] Icinga Web 2 Module werden aktiviert." + echo "[INFO] Icinga Web 2 Module werden in korrekter Reihenfolge aktiviert." icingacli module enable ipl icingacli module enable reactbundle + icingacli module enable incubator icingacli module enable director echo "[INFO] Alle Services werden neu gestartet."