X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8cf8bc46f84f00674ceaefcbe46a6d3edb1db49d..7f5c025954a0868b7ac2aea8722089e75c39668e:/cookbooks/networking/templates/default/wireguard.network.erb?ds=inline diff --git a/cookbooks/networking/templates/default/wireguard.network.erb b/cookbooks/networking/templates/default/wireguard.network.erb index 2d3469cf1..5e215b184 100644 --- a/cookbooks/networking/templates/default/wireguard.network.erb +++ b/cookbooks/networking/templates/default/wireguard.network.erb @@ -5,6 +5,9 @@ Name=wg0 <% 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]