automanage consul dns
This commit is contained in:
parent
3a98086d23
commit
1a1bcaa81d
@ -55,11 +55,13 @@ job "pihole" {
|
|||||||
}
|
}
|
||||||
template{
|
template{
|
||||||
data= <<EOH
|
data= <<EOH
|
||||||
server=/ducamps.win/192.168.1.10
|
server=/ducamps.win/192.168.1.10
|
||||||
server=/consul/172.17.0.1#8600
|
{{range service "consul"}}server=/consul/{{.Address}}#8600
|
||||||
local-ttl=2
|
{{end}}
|
||||||
|
local-ttl=2
|
||||||
EOH
|
EOH
|
||||||
destination="local/dnsmasq.d/02-localresolver.conf"
|
destination="local/dnsmasq.d/02-localresolver.conf"
|
||||||
|
change_mode = "restart"
|
||||||
|
|
||||||
}
|
}
|
||||||
resources {
|
resources {
|
||||||
|
Loading…
Reference in New Issue
Block a user