bundles/apt: fix unattended-upgrades

This commit is contained in:
Franzi 2020-03-14 09:37:31 +00:00
parent 37294f11a3
commit 589965b58b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,6 @@
[apt]
frontend=pager
email_address=${data['mail']}
confirm=0
save_seen=/var/lib/apt/listchanges.db
which=both

View file

@ -0,0 +1,2 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

View file

@ -1,6 +1,6 @@
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=\$\{distro_codename\},label=Debian";
"origin=Debian,codename=\$\{distro_codename\},label=Debian-Security";
"origin=Debian,codename=${node.metadata['os_release']},label=Debian";
"origin=Debian,codename=${node.metadata['os_release']},label=Debian-Security";
// External packages
% for item in sorted(data.get('origins')):

View file

@ -15,6 +15,9 @@ files = {
'source': 'apt.conf-unattended-upgrades',
'context': {'data': node.metadata.get('apt', {}).get('unattended-upgrades', {})}
},
'/etc/apt/apt.conf.d/20auto-upgrades': {
'source': 'apt.conf-auto-upgrades',
},
}
directories = {