bundles/wireguard: uninstall dkms package for debian > 11

This commit is contained in:
Franzi 2023-11-12 11:00:43 +01:00
parent d6db192f53
commit 75ef2e7bb9
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -9,18 +9,24 @@ defaults = {
'packages': { 'packages': {
'wireguard': {}, 'wireguard': {},
}, },
'repos': { },
'wireguard': {
'privatekey': repo.libs.keys.gen_privkey(repo, f'{node.name} wireguard privatekey'),
},
}
if node.os_version <= (11,):
defaults['apt']['repos'] = {
'backports': { 'backports': {
'install_gpg_key': False, # default debian signing key 'install_gpg_key': False, # default debian signing key
'items': { 'items': {
'deb http://deb.debian.org/debian {os_release}-backports main', 'deb http://deb.debian.org/debian {os_release}-backports main',
}, },
}, },
}, }
}, else:
'wireguard': { defaults['apt']['packages']['wireguard-dkms'] = {
'privatekey': repo.libs.keys.gen_privkey(repo, f'{node.name} wireguard privatekey'), 'installed': False,
},
} }
if node.has_bundle('telegraf'): if node.has_bundle('telegraf'):