wip
This commit is contained in:
parent
4e2f50f79b
commit
856e74f1e4
2 changed files with 14 additions and 1 deletions
|
@ -70,5 +70,16 @@ 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):
|
||||||
|
pkg_apt[package].pop('backports')
|
||||||
|
|
||||||
|
files[f'/etc/apt/preferences.d/{package}'] = {
|
||||||
|
'content': '\n'.join([
|
||||||
|
f"Package: {package}",
|
||||||
|
f"Pin: release a={node.metadata.get('os_release')}-backports",
|
||||||
|
f"Pin-Priority: 900",
|
||||||
|
]),
|
||||||
|
}
|
||||||
|
|
|
@ -15,12 +15,14 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'zfs-dkms': {
|
'zfs-dkms': {
|
||||||
|
'backports': True,
|
||||||
'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,
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'zfs_dataset:',
|
'zfs_dataset:',
|
||||||
'zfs_pool:',
|
'zfs_pool:',
|
||||||
|
|
Loading…
Reference in a new issue