feat: update consul/dnsmasq (#274)

- update params with bind/advertise addr
- update params with anycast ip option
- migrate dnsmasq config to template

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/274
This commit was merged in pull request #274.
This commit is contained in:
2025-05-03 23:51:29 +10:00
parent 3079f7d000
commit a70b6492b0
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 -%>