template {
contents = "{{ with secret \"pki/issue/dynback-dot-net\" \"common_name=https-proxy-443.service.consul.automation.intc.dynback.net\" }}{{ .Data.certificate }}{{ end }}\n"
destination = "/myapp/etc/ssl/private/cert.pem"
command = "echo -e POST /containers/ha-proxy1/kill?signal=HUP HTTP/1.0\\\\r\\\\n | nc -U /var/run/docker.sock"
perms = "0600"
backup = true
}
template {
contents = "{{ with secret \"pki/issue/dynback-dot-net\" \"common_name=https-proxy-443.service.consul.automation.intc.dynback.net\" }}{{ .Data.private_key }}{{ end }}\n"
destination = "/myapp/etc/ssl/private/key.pem"
command = "echo -e POST /containers/ha-proxy1/kill?signal=HUP HTTP/1.0\\\\r\\\\n | nc -U /var/run/docker.sock"
perms = "0600"
backup = true
}
That works just fine for populating the cert.pem and key.pem files and signaling the affected container to reload config, but ...
Questions: