diff --git a/bundles/wireguard/metadata.py b/bundles/wireguard/metadata.py index c8951ee..19e324a 100644 --- a/bundles/wireguard/metadata.py +++ b/bundles/wireguard/metadata.py @@ -9,20 +9,26 @@ defaults = { 'packages': { 'wireguard': {}, }, - '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'), }, } +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'): defaults['telegraf'] = { 'input_plugins': {