Update auf Debian 12

!! Zugangsdaten für VM besorgen (Richi?), Snapshot machen, Alerts ausschalten !!

  1. Alerts ausschalten: icinga2 feature disable notification && systemctl restart icinga2
  2. sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
  3. mv /etc/apt/sources.list.d/debian-testing.list /etc/apt/sources.list.d/debian-testing.list.save
  4. apt update && apt upgrade -y
  5. Postgresql-Update von 13 auf 15:
pg_dropcluster 15 main --stop
pg_upgradecluster 13 main
apt remove postgresql-13 postgresql-client-13
  1. mit aptitude veraltete pakete entfernen und restliche Aktualisierungen durchführen
  2. IcingaWeb2-Datenbank-Updates durchführen:
PGPASSWORD=<PASSWORT> /usr/bin/psql -h localhost -U icingaweb2 -d icingaweb2 -f /usr/share/icingaweb2/schema/pgsql-upgrades/<DER REIHE NACH ALLE UPDATES>
PGPASSWORD=<PASSWORT> /usr/bin/psql -h localhost -U icingaweb2 -d icingaweb2 -f /usr/share/icingaweb2/schema/pgsql.schema.sql
  1. Ansible mit "debian12"-Branch drüberlaufen lassen
  2. "debian12"-Branch mergen
  3. Alerts einschalten: icinga2 feature enable notification && systemctl restart icinga2
  4. Nach ein paar Wochen: Snapshot löschen
Edited by Citronalco