From 24373d0ac99b76036652558b158b1a47f9151682 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 16 Dec 2023 10:19:33 +0100 Subject: [PATCH] bundles/icinga2: 15min downtime is enough for unattended upgrades --- bundles/icinga2/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/icinga2/items.py b/bundles/icinga2/items.py index fd51b34..607d098 100644 --- a/bundles/icinga2/items.py +++ b/bundles/icinga2/items.py @@ -385,7 +385,7 @@ for rnode in sorted(repo.nodes): 'host': rnode.name, 'comment': f'Downtime for upgrade-and-reboot of node {rnode.name}', 'times': { - DAYS_TO_STRING[day%7]: f'{hour}:{minute}-{hour}:{minute+30}', + DAYS_TO_STRING[day%7]: f'{hour}:{minute}-{hour}:{minute+15}', }, }) elif ( @@ -401,7 +401,7 @@ for rnode in sorted(repo.nodes): 'host': rnode.name, 'comment': f'Downtime for upgrade-and-reboot of node {rnode.name}', 'times': { - DAYS_TO_STRING[day%7]: f'{hour}:{minute}-{hour}:{minute+30}', + DAYS_TO_STRING[day%7]: f'{hour}:{minute}-{hour}:{minute+15}', }, })