aboutsummaryrefslogtreecommitdiff
path: root/deploy_pki
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-11 22:37:28 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-11 22:37:28 +0100
commit578075a9252435aaed12d2535577e18e053cd916 (patch)
treec441183d35ae1c23e30abd722322124d87f03136 /deploy_pki
parent36e6756b3c72c3170255a9676ab3cf6f08eb1218 (diff)
downloadnixcfg-578075a9252435aaed12d2535577e18e053cd916.tar.gz
nixcfg-578075a9252435aaed12d2535577e18e053cd916.zip
Add origan node in staging cluster (+ refactor system.stateVersion)
Diffstat (limited to 'deploy_pki')
-rwxr-xr-xdeploy_pki10
1 files changed, 5 insertions, 5 deletions
diff --git a/deploy_pki b/deploy_pki
index d6b0d3a..d7f5832 100755
--- a/deploy_pki
+++ b/deploy_pki
@@ -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"