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