bundles/wireguard: add netdev and network files, add iptables rules
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-21 15:38:38 +01:00
parent e2490df48e
commit 58ca3fa9ae
Signed by: kunsi
GPG key ID: 12E3D2136B818350
8 changed files with 168 additions and 8 deletions

View file

@ -0,0 +1,26 @@
assert node.has_bundle('systemd-networkd')
files = {
'/etc/systemd/network/99-wg0.netdev': {
'source': 'wg0.netdev',
'content_type': 'mako',
'context': node.metadata['wireguard'],
'needs': {
'pkg_apt:wireguard',
},
'triggers': {
'svc_systemd:systemd-networkd:restart',
},
},
'/etc/systemd/network/99-wg0.network': {
'source': 'wg0.network',
'content_type': 'mako',
'context': node.metadata['wireguard'],
'needs': {
'pkg_apt:wireguard',
},
'triggers': {
'svc_systemd:systemd-networkd:restart',
},
},
}