bundles/apt: fix unattended-upgrades
This commit is contained in:
parent
37294f11a3
commit
589965b58b
4 changed files with 13 additions and 2 deletions
6
bundles/apt/files/apt-listchanges.conf
Normal file
6
bundles/apt/files/apt-listchanges.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
[apt]
|
||||
frontend=pager
|
||||
email_address=${data['mail']}
|
||||
confirm=0
|
||||
save_seen=/var/lib/apt/listchanges.db
|
||||
which=both
|
2
bundles/apt/files/apt.conf-auto-upgrades
Normal file
2
bundles/apt/files/apt.conf-auto-upgrades
Normal file
|
@ -0,0 +1,2 @@
|
|||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
|
@ -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')):
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue