From 5613ed99086618b91441d84620bdbe27a94ad1d2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 16 Oct 2022 18:12:57 +0200 Subject: Complete telemetry configuration --- deploy_pki | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy_pki') diff --git a/deploy_pki b/deploy_pki index cb39bec..d6b0d3a 100755 --- a/deploy_pki +++ b/deploy_pki @@ -18,6 +18,7 @@ cmd systemctl restart consul cmd sleep 10 for file in nomad-ca.crt nomad$YEAR.crt nomad$YEAR.key \ + nomad$YEAR-client.crt nomad$YEAR-client.key \ consul$YEAR.crt consul$YEAR-client.crt consul$YEAR-client.key do if pass $PKI/$file >/dev/null; then @@ -37,3 +38,8 @@ cmd "consul kv put secrets/consul/consul-ca.crt - < /var/lib/consul/pki/consul-c cmd "consul kv put secrets/consul/consul.crt - < /var/lib/consul/pki/consul$YEAR.crt" cmd "consul kv put secrets/consul/consul-client.crt - < /var/lib/consul/pki/consul$YEAR-client.crt" cmd "consul kv put secrets/consul/consul-client.key - < /var/lib/consul/pki/consul$YEAR-client.key" + +cmd "consul kv put secrets/nomad/nomad-ca.crt - < /var/lib/private/nomad/pki/nomad-ca.crt" +cmd "consul kv put secrets/nomad/nomad.crt - < /var/lib/private/nomad/pki/nomad$YEAR.crt" +cmd "consul kv put secrets/nomad/nomad-client.crt - < /var/lib/private/nomad/pki/nomad$YEAR-client.crt" +cmd "consul kv put secrets/nomad/nomad-client.key - < /var/lib/private/nomad/pki/nomad$YEAR-client.key" -- cgit v1.2.3