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,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'):
|
||||||
|
|
Loading…
Reference in a new issue