{{ with node }}{{ range services }}{{ $name := .Name }}{{ $service := service (printf "%s|any" $name) }}{{ range $service }}{{ if eq node.Node.Node .Node }}{{ $ews_instance := index .ServiceMeta "ews_instance" }}{{ if eq $ews_instance "app01" }}{{ index .ServiceMeta "serveridentity" }}{{ end }}{{ end }}{{ end }}{{ end }}{{ end -}}
au.domain.com
Command
"bash -c 'if id -u majandust > /dev/null 2>&1; then chown majandust:root /app_deployment/app01/central/dbaccess/serveridentity.txt; fi'"
Expected behavior
Consul should render configuration file based on data from Consul Service meta keys.
Actual behavior
After consul or consul-template service restart, destination configuration file is blank until the configured minimum wait time for template kicks in.
Not sure if this is Consul or Consul Template issue, because it happens after restart of any of these two service.
Consul Template version
0.30.0 This did also happen with version 0.25.0
Consul version
1.12.9
Consul Template Configuration
Command
Expected behavior
Consul should render configuration file based on data from Consul Service meta keys.
Actual behavior
After consul or consul-template service restart, destination configuration file is blank until the configured minimum wait time for template kicks in.
Not sure if this is Consul or Consul Template issue, because it happens after restart of any of these two service.