X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/13c8616cfdbe61a644812acf4163a975f24b9401..e39ce14712633ee84052cfec5de1b3aa6a02e877:/cookbooks/networking/templates/default/wireguard.network.erb diff --git a/cookbooks/networking/templates/default/wireguard.network.erb b/cookbooks/networking/templates/default/wireguard.network.erb index b8114382c..5e215b184 100644 --- a/cookbooks/networking/templates/default/wireguard.network.erb +++ b/cookbooks/networking/templates/default/wireguard.network.erb @@ -2,6 +2,12 @@ Name=wg0 [Network] +<% if node.internal_ipaddress -%> +Address=<%= node.internal_ipaddress %>/32 +<% end -%> +<% if node[:networking][:private_address] -%> +Address=<%= node[:networking][:private_address] %>/32 +<% end -%> Address=<%= node[:networking][:wireguard][:address] %>/128 [Route]