bundles/wireguard: support arch linux and other netmasks than /31

This commit is contained in:
Franzi 2022-03-09 13:05:01 +01:00
parent 05a2e501ce
commit c7e5002f17
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 7 additions and 5 deletions

View file

@ -22,9 +22,7 @@ for number, (peer, config) in enumerate(sorted(node.metadata.get('wireguard/peer
'psk': config['psk'],
'pubkey': config['pubkey'],
},
'needs': {
'pkg_apt:wireguard',
},
'needs': {'pkg_apt:wireguard'} if node.has_bundle('apt') else set(),
'triggers': {
'svc_systemd:systemd-networkd:restart',
},