fix pihole: issue when query local pihole host
This commit is contained in:
parent
feec56e12d
commit
ab74166a49
@ -86,7 +86,7 @@ job "pihole" {
|
|||||||
template {
|
template {
|
||||||
data = <<EOH
|
data = <<EOH
|
||||||
INTERFACE = {{ sockaddr "GetPrivateInterfaces | include \"network\" \"192.168.1.0/24\" | attr \"name\"" }}
|
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}}"
|
WEBPASSWORD="{{with secret "secrets/data/nomad/pihole"}}{{.Data.data.WEBPASSWORD}}{{end}}"
|
||||||
EOH
|
EOH
|
||||||
destination = "local/file.env"
|
destination = "local/file.env"
|
||||||
|
Loading…
Reference in New Issue
Block a user