From: Tom Hughes Date: Mon, 14 Sep 2020 18:24:38 +0000 (+0100) Subject: Configure v4 address for wireguard endpoints with an internal address X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/8cf8bc46f84f00674ceaefcbe46a6d3edb1db49d Configure v4 address for wireguard endpoints with an internal address --- diff --git a/cookbooks/networking/templates/default/wireguard.network.erb b/cookbooks/networking/templates/default/wireguard.network.erb index b8114382c..2d3469cf1 100644 --- a/cookbooks/networking/templates/default/wireguard.network.erb +++ b/cookbooks/networking/templates/default/wireguard.network.erb @@ -2,6 +2,9 @@ Name=wg0 [Network] +<% if node.internal_ipaddress -%> +Address=<%= node.internal_ipaddress %>/32 +<% end -%> Address=<%= node[:networking][:wireguard][:address] %>/128 [Route]