fix apt unattended-upgrades

This commit is contained in:
Franzi 2020-05-23 17:01:30 +02:00
parent bd48c45553
commit 86d88a4355
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 16 additions and 18 deletions

View file

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

View file

@ -11,8 +11,8 @@ def nodejs_apt_repos(metadata):
},
},
'unattended-upgrades': {
'sites': {
'pkg.jenkins.io',
'origins': {
'o=jenkins.io,a=binary',
},
},
'packages': {

View file

@ -11,8 +11,8 @@ def nodejs_apt_repos(metadata):
},
},
'unattended-upgrades': {
'sites': {
'packages.matrix.org',
'origins': {
'o=matrix.org,n=buster,c=main',
},
},
'packages': {

View file

@ -11,8 +11,8 @@ def defaults(metadata):
},
},
'unattended-upgrades': {
'sites': {
'nginx.org',
'origins': {
'o=nginx,a=stable,n=buster,l=nginx,c=nginx',
},
},
'packages': {

View file

@ -18,9 +18,9 @@ def nodejs_apt_repos(metadata):
},
},
'unattended-upgrades': {
'sites': {
'deb.nodesource.com',
'dl.yarnpkg.com',
'origins': {
'o=Node Source,n=buster,l=Node Source,c=main',
'o=yarn,a=stable,n=stable,l=yarn-stable,c=main',
},
},
'packages': {

View file

@ -13,13 +13,11 @@ nodes['htz.ex42-1048908'] = {
'metadata': {
'apt': {
'unattended-upgrades': {
'sites': {
'weechat.org',
'rspamd.com',
'artifacts.elastic.co',
'apt.miniflux.app',
'packages.grafana.com',
'packages.matrix.org',
'origins': {
'site=weechat.org',
'o=Rspamd,n=buster,l=Rspamd,c=main',
'site=apt.miniflux.app',
'o=grafana stable,a=stable,n=stable,l=grafana stable,c=main',
},
},
},