This commit is contained in:
mwiegand 2021-07-01 21:13:05 +02:00
parent 59165f54c6
commit 9114e560ff
6 changed files with 30 additions and 8 deletions

View file

@ -79,9 +79,7 @@ for host, sources in hosts.items():
for package, options in node.metadata.get('apt/packages', {}).items():
pkg_apt[package] = options
if options.get('backports', None):
pkg_apt[package].pop('backports')
if pkg_apt[package].pop('backports', False):
files[f'/etc/apt/preferences.d/{package}'] = {
'content': '\n'.join([
f"Package: {package}",

View file

@ -9,7 +9,7 @@ defaults = {
'packages': {
'linux-headers-amd64': {},
'wireguard': {
'backports': True,
'backports': node.os_version < (11,),
'needs': [
'pkg_apt:linux-headers-amd64',
],

View file

@ -15,21 +15,21 @@ defaults = {
},
},
'zfs-dkms': {
'backports': True,
'backports': node.os_version < (11,),
'needed_by': {
'pkg_apt:zfs-zed',
'pkg_apt:zfsutils-linux',
},
},
'zfs-zed': {
'backports': True,
'backports': node.os_version < (11,),
'needed_by': {
'zfs_dataset:',
'zfs_pool:',
},
},
'zfsutils-linux': {
'backports': True,
'backports': node.os_version < (11,),
'needed_by': {
'pkg_apt:zfs-zed',
'zfs_dataset:',

View file

@ -3,6 +3,11 @@
'debian',
],
'metadata': {
'apt': {
'sources': [
'deb http://security.debian.org/debian-security {release}/updates main contrib non-free',
],
},
'php': {
'version': '7.3',
},

20
groups/os/debian-11.py Normal file
View file

@ -0,0 +1,20 @@
{
'supergroups': [
'debian',
],
'metadata': {
'apt': {
'sources': [
'deb http://security.debian.org/ {release}-security main contrib non-free',
],
},
'php': {
'version': '7.4',
},
'postgresql': {
'version': '13',
},
'os_release': 'bullseye',
},
'os_version': (11,),
}

View file

@ -10,7 +10,6 @@
'sources': [
'deb http://deb.debian.org/debian {release} main non-free contrib',
'deb http://deb.debian.org/debian {release}-updates main contrib non-free',
'deb http://security.debian.org/debian-security {release}/updates main contrib non-free',
'deb http://deb.debian.org/debian {release}-backports main contrib non-free',
],
'packages': {