feat: update consul/dnsmasq

- update params with bind/advertise addr
- update params with anycast ip option
- migrate dnsmasq config to template
This commit is contained in:
2025-05-03 23:39:47 +10:00
parent 1b8f50786f
commit 2bdf336b28
2 changed files with 12 additions and 3 deletions
@@ -0,0 +1,6 @@
server=/<%= @domain %>/<%= @bind_addr %>#<%= @dns_port %>
<% if @anycast_ip -%>
listen-addr=<%= @anycast_ip %>
<% else -%>
listen-addr=<%= @bind_addr %>
<% end -%>