wip
This commit is contained in:
parent
59165f54c6
commit
9114e560ff
6 changed files with 30 additions and 8 deletions
|
@ -79,9 +79,7 @@ for host, sources in hosts.items():
|
||||||
for package, options in node.metadata.get('apt/packages', {}).items():
|
for package, options in node.metadata.get('apt/packages', {}).items():
|
||||||
pkg_apt[package] = options
|
pkg_apt[package] = options
|
||||||
|
|
||||||
if options.get('backports', None):
|
if pkg_apt[package].pop('backports', False):
|
||||||
pkg_apt[package].pop('backports')
|
|
||||||
|
|
||||||
files[f'/etc/apt/preferences.d/{package}'] = {
|
files[f'/etc/apt/preferences.d/{package}'] = {
|
||||||
'content': '\n'.join([
|
'content': '\n'.join([
|
||||||
f"Package: {package}",
|
f"Package: {package}",
|
||||||
|
|
|
@ -9,7 +9,7 @@ defaults = {
|
||||||
'packages': {
|
'packages': {
|
||||||
'linux-headers-amd64': {},
|
'linux-headers-amd64': {},
|
||||||
'wireguard': {
|
'wireguard': {
|
||||||
'backports': True,
|
'backports': node.os_version < (11,),
|
||||||
'needs': [
|
'needs': [
|
||||||
'pkg_apt:linux-headers-amd64',
|
'pkg_apt:linux-headers-amd64',
|
||||||
],
|
],
|
||||||
|
|
|
@ -15,21 +15,21 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'zfs-dkms': {
|
'zfs-dkms': {
|
||||||
'backports': True,
|
'backports': node.os_version < (11,),
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'pkg_apt:zfs-zed',
|
'pkg_apt:zfs-zed',
|
||||||
'pkg_apt:zfsutils-linux',
|
'pkg_apt:zfsutils-linux',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'zfs-zed': {
|
'zfs-zed': {
|
||||||
'backports': True,
|
'backports': node.os_version < (11,),
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'zfs_dataset:',
|
'zfs_dataset:',
|
||||||
'zfs_pool:',
|
'zfs_pool:',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'zfsutils-linux': {
|
'zfsutils-linux': {
|
||||||
'backports': True,
|
'backports': node.os_version < (11,),
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'pkg_apt:zfs-zed',
|
'pkg_apt:zfs-zed',
|
||||||
'zfs_dataset:',
|
'zfs_dataset:',
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
'debian',
|
'debian',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
|
'apt': {
|
||||||
|
'sources': [
|
||||||
|
'deb http://security.debian.org/debian-security {release}/updates main contrib non-free',
|
||||||
|
],
|
||||||
|
},
|
||||||
'php': {
|
'php': {
|
||||||
'version': '7.3',
|
'version': '7.3',
|
||||||
},
|
},
|
||||||
|
|
20
groups/os/debian-11.py
Normal file
20
groups/os/debian-11.py
Normal 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,),
|
||||||
|
}
|
|
@ -10,7 +10,6 @@
|
||||||
'sources': [
|
'sources': [
|
||||||
'deb http://deb.debian.org/debian {release} main non-free contrib',
|
'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://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',
|
'deb http://deb.debian.org/debian {release}-backports main contrib non-free',
|
||||||
],
|
],
|
||||||
'packages': {
|
'packages': {
|
||||||
|
|
Loading…
Reference in a new issue