fix pihole: issue when query local pihole host

This commit is contained in:
vincent 2022-12-05 21:56:04 +01:00
parent feec56e12d
commit ab74166a49

View File

@ -86,7 +86,7 @@ job "pihole" {
template {
data = <<EOH
INTERFACE = {{ sockaddr "GetPrivateInterfaces | include \"network\" \"192.168.1.0/24\" | attr \"name\"" }}
FTLCONF_LOCAL_IPV4 = {{ env "NOMAD_IP_dns" }}
WEBPASSWORD="{{with secret "secrets/data/nomad/pihole"}}{{.Data.data.WEBPASSWORD}}{{end}}"
EOH
destination = "local/file.env"