From de6073bdcf2d69fbd2869154ac2d69996a6acd46 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 31 Jul 2024 14:53:22 +0200 Subject: [PATCH] bundles/apt: add option to disable unattended upgrades --- bundles/apt/metadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/apt/metadata.py b/bundles/apt/metadata.py index df84473..526f318 100644 --- a/bundles/apt/metadata.py +++ b/bundles/apt/metadata.py @@ -21,6 +21,9 @@ defaults = { 'cron/jobs/upgrade-and-reboot' ) def patchday(metadata): + if not node.metadata.get('apt/unattended-upgrades/enabled', True): + return {} + day = metadata.get('apt/unattended-upgrades/day') hour = metadata.get('apt/unattended-upgrades/hour')