]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/wireguard.network.erb
Move promscale tuning to role and tune WAL sizes
[chef.git] / cookbooks / networking / templates / default / wireguard.network.erb
index b8114382ca95519844db9ce3c6c3fb624acdf0bb..5e215b18401b960d31141281148070210635cf3b 100644 (file)
@@ -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]