diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-11 22:37:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-11 22:37:28 +0100 |
commit | 578075a9252435aaed12d2535577e18e053cd916 (patch) | |
tree | c441183d35ae1c23e30abd722322124d87f03136 /deploy_pki | |
parent | 36e6756b3c72c3170255a9676ab3cf6f08eb1218 (diff) | |
download | nixcfg-578075a9252435aaed12d2535577e18e053cd916.tar.gz nixcfg-578075a9252435aaed12d2535577e18e053cd916.zip |
Add origan node in staging cluster (+ refactor system.stateVersion)
Diffstat (limited to 'deploy_pki')
-rwxr-xr-x | deploy_pki | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -23,7 +23,7 @@ for file in nomad-ca.crt nomad$YEAR.crt nomad$YEAR.key \ do if pass $PKI/$file >/dev/null; then write_pass $PKI/$file /var/lib/nomad/pki/$file - cmd "chown \$(stat -c %u /var/lib/private/nomad) /var/lib/nomad/pki/$file" + cmd "chown \$(stat -c %u /var/lib/nomad) /var/lib/nomad/pki/$file" fi done @@ -39,7 +39,7 @@ cmd "consul kv put secrets/consul/consul.crt - < /var/lib/consul/pki/consul$YEAR 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" +cmd "consul kv put secrets/nomad/nomad-ca.crt - < /var/lib/nomad/pki/nomad-ca.crt" +cmd "consul kv put secrets/nomad/nomad.crt - < /var/lib/nomad/pki/nomad$YEAR.crt" +cmd "consul kv put secrets/nomad/nomad-client.crt - < /var/lib/nomad/pki/nomad$YEAR-client.crt" +cmd "consul kv put secrets/nomad/nomad-client.key - < /var/lib/nomad/pki/nomad$YEAR-client.key" |