bundles/wireguard: uninstall dkms package for debian > 11
This commit is contained in:
parent
d6db192f53
commit
75ef2e7bb9
1 changed files with 14 additions and 8 deletions
|
@ -9,19 +9,25 @@ defaults = {
|
|||
'packages': {
|
||||
'wireguard': {},
|
||||
},
|
||||
'repos': {
|
||||
},
|
||||
'wireguard': {
|
||||
'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',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'wireguard': {
|
||||
'privatekey': repo.libs.keys.gen_privkey(repo, f'{node.name} wireguard privatekey'),
|
||||
},
|
||||
}
|
||||
}
|
||||
else:
|
||||
defaults['apt']['packages']['wireguard-dkms'] = {
|
||||
'installed': False,
|
||||
}
|
||||
|
||||
if node.has_bundle('telegraf'):
|
||||
defaults['telegraf'] = {
|
||||
|
|
Loading…
Reference in a new issue