summaryrefslogtreecommitdiff
path: root/manifests/wireguard_peer.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/wireguard_peer.pp')
-rw-r--r--manifests/wireguard_peer.pp14
1 files changed, 1 insertions, 13 deletions
diff --git a/manifests/wireguard_peer.pp b/manifests/wireguard_peer.pp
index 0f02e39..6eaeef1 100644
--- a/manifests/wireguard_peer.pp
+++ b/manifests/wireguard_peer.pp
@@ -32,19 +32,7 @@ class profiles::wireguard_peer (
'ListenPort' => $profiles::wireguard::port,
'PrivateKey' => $private_key,
},
- 'WireGuardPeer' => {
- 'PublicKey' => $peer_key,
- # IP addresses which the kernel will accept sending over this
- # interface. Set it to 0.0.0.0/0 to allow anything to traverse
- # the tunnel
- 'AllowedIPs' => [
- '10.0.0.0/23', # adrift.space localnet
- '10.0.10.2/32', # Wireguard return
- ],
- # TODO is IP addresses allowed here?
- # Where the peer we want to connect to resides
- 'Endpoint' => "gandalf.adrift.space:${profiles::wireguard::port}",
- }
+ 'WireGuardPeer' => $peers,
}
}