diff options
author | Alex Auvolat <alex@adnab.me> | 2022-10-16 18:12:57 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-10-16 18:12:57 +0200 |
commit | 5613ed99086618b91441d84620bdbe27a94ad1d2 (patch) | |
tree | 304f247c4099a430a29f6d44f5f41172a2c50a7d /deploy_pki | |
parent | 42409de1b1638f5d935831dc66ddff9a1d9ba29d (diff) | |
download | nixcfg-5613ed99086618b91441d84620bdbe27a94ad1d2.tar.gz nixcfg-5613ed99086618b91441d84620bdbe27a94ad1d2.zip |
Complete telemetry configuration
Diffstat (limited to 'deploy_pki')
-rwxr-xr-x | deploy_pki | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |