diff --git a/src/icinga2/install-service.sh b/src/icinga2/install-service.sh index f49a20d..df63cfe 100644 --- a/src/icinga2/install-service.sh +++ b/src/icinga2/install-service.sh @@ -21,10 +21,12 @@ echo "deb [signed-by=/usr/share/keyrings/influxdata-archive_compat-keyring.gpg] apt update -apt-get install -y icinga2 nginx php${PHP_VERSION}-fpm php${PHP_VERSION}-mysql php${PHP_VERSION}-intl php${PHP_VERSION}-xml php${PHP_VERSION}-gd php${PHP_VERSION}-ldap php${PHP_VERSION}-imagick \ +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install -y -qq --no-install-recommends \ + icinga2 nginx php${PHP_VERSION}-fpm php${PHP_VERSION}-mysql php${PHP_VERSION}-intl php${PHP_VERSION}-xml php${PHP_VERSION}-gd php${PHP_VERSION}-ldap php${PHP_VERSION}-imagick \ mariadb-server mariadb-client influxdb2 imagemagick icingaweb2 icingacli icinga-php-library icingaweb2-module-reactbundle icinga-notifications icinga-notifications-web \ - icinga-director icingadb icingadb-redis icingadb-web icingaweb2-module-perfdatagraphs icingaweb2-module-perfdatagraphs-influxdbv2 \ - monitoring-plugins monitoring-plugins-basic monitoring-plugins-common monitoring-plugins-standard monitoring-plugins-systemd + icinga-director icingadb icingadb-redis icingadb-web icingaweb2-module-perfdatagraphs icingaweb2-module-perfdatagraphs-influxdbv2 chromium fonts-liberation fonts-noto \ + monitoring-plugins monitoring-plugins-basic monitoring-plugins-common monitoring-plugins-standard monitoring-plugins-systemd icingaweb2-module-pdfexport + ICINGAWEB_DB_PASS=$(_generate_local_password 24) @@ -334,6 +336,14 @@ cat << EOF > /etc/icingaweb2/modules/notifications/config.ini resource = "notifications" EOF +mkdir -p /etc/icingaweb2/modules/pdfexport +cat << EOF > /etc/icingaweb2/modules/pdfexport/config.ini +[chrome] +binary = "/usr/bin/chromium" +force_temp_storage = "0" +EOF + + ln -sf /etc/nginx/sites-available/icinga-stack /etc/nginx/sites-enabled/ rm -f /etc/nginx/sites-enabled/default