bundles/apt: add option to disable unattended upgrades
This commit is contained in:
parent
7649396b8a
commit
de6073bdcf
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue