From 3534ba1a19844e55982cb773599671d2fdb4be02 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 14 Jun 2020 11:48:53 +0200 Subject: Read domain name from LDAP --- nomad/email.hcl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nomad/email.hcl') diff --git a/nomad/email.hcl b/nomad/email.hcl index 75849cd..4b4be41 100644 --- a/nomad/email.hcl +++ b/nomad/email.hcl @@ -356,6 +356,16 @@ job "email" { destination = "secrets/postfix/ldap-alias.cf" } + artifact { + source = "http://127.0.0.1:8500/v1/kv/configuration/email/postfix/ldap-virtual-domains.cf.tpl?raw" + destination = "secrets/postfix/ldap-virtual-domains.cf.tpl" + mode = "file" + } + template { + source = "secrets/postfix/ldap-virtual-domains.cf.tpl" + destination = "secrets/postfix/ldap-virtual-domains.cf" + } + template { data = "{{ key \"configuration/email/postfix/postfix.crt\" }}" -- cgit v1.2.3