From d6db192f539b08971808f2f2946769c28604d590 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 12 Nov 2023 11:00:12 +0100 Subject: [PATCH] automatix fixes --- automatix/upgrade_debian_bookworm.yaml | 47 -------------------------- automatix/upgrade_debian_bullseye.yaml | 2 +- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 automatix/upgrade_debian_bookworm.yaml diff --git a/automatix/upgrade_debian_bookworm.yaml b/automatix/upgrade_debian_bookworm.yaml deleted file mode 100644 index 352940b..0000000 --- a/automatix/upgrade_debian_bookworm.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Upgrade to debian bullseye -systems: - node: foonode - -always: - - has_zfs=python: NODES.node.has_bundle('zfs') - - is_buster=python: NODES.node.os_version[0] <= 10 - - buster_with_zfs=python: "{has_zfs} and {is_buster}" - -pipeline: - - manual: "set icinga2 downtime: https://icinga.kunsmann.eu/monitoring/host/schedule-downtime?host={SYSTEMS.node}" - - # apply first so we only see the upgrade changes later - - local: bw apply {SYSTEMS.node} - - manual: update debian version in node groups - - is_buster?local: "bw apply -o bundle:apt -s symlink:/usr/bin/python pkg_apt: -- {SYSTEMS.node}" - - # double time! - - remote@node: DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold dist-upgrade - - remote@node: DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold dist-upgrade - - # reboot into bullseye - - remote@node: systemctl reboot - - local: | - exit=1 - while [[ $exit -ne 0 ]]; - do - sleep 1 - ssh {SYSTEMS.node} true - exit=$? - done - - # fix zfs and reboot again - - buster_with_zfs?remote@node: zpool import tank -f - - has_zfs?remote@node: zpool upgrade -a - - has_zfs?remote@node: systemctl reboot - - has_zfs?local: | - exit=1 - while [[ $exit -ne 0 ]]; - do - sleep 1 - ssh {SYSTEMS.node} true - exit=$? - done - - # final apply - - local: bw apply {SYSTEMS.node} diff --git a/automatix/upgrade_debian_bullseye.yaml b/automatix/upgrade_debian_bullseye.yaml index 6531f1c..3eaee06 100644 --- a/automatix/upgrade_debian_bullseye.yaml +++ b/automatix/upgrade_debian_bullseye.yaml @@ -6,7 +6,7 @@ always: - has_zfs=python: NODES.node.has_bundle('zfs') pipeline: - - manual: "set icinga2 downtime: https://icinga.kunsmann.eu/monitoring/host/schedule-downtime?host={SYSTEMS.node}" + - manual: "set icinga2 downtime: https://icinga.franzi.business/monitoring/host/schedule-downtime?host={SYSTEMS.node}" # apply first so we only see the upgrade changes later - local: bw apply {SYSTEMS.node}