aboutsummaryrefslogtreecommitdiff
path: root/deploy_pki
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-28 11:55:58 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-28 11:56:51 +0100
commit5b89004c0f7884e4c8bbb59d2743c92baef8c723 (patch)
tree7c5fc20eb7323dcd48041fab9050f44ff0e3e071 /deploy_pki
parente4708a325d4b2835b31c5616393525b84eddec5f (diff)
downloadnixcfg-5b89004c0f7884e4c8bbb59d2743c92baef8c723.tar.gz
nixcfg-5b89004c0f7884e4c8bbb59d2743c92baef8c723.zip
staging: deploy garage 0.10 beta + fix monitoring
Diffstat (limited to 'deploy_pki')
-rwxr-xr-xdeploy_pki7
1 files changed, 2 insertions, 5 deletions
diff --git a/deploy_pki b/deploy_pki
index f9a4106..1ab2b35 100755
--- a/deploy_pki
+++ b/deploy_pki
@@ -19,10 +19,7 @@ cmd ln -sf /var/lib/consul/pki/consul$YEAR.key /var/lib/consul/pki/consul.key
cmd ln -sf /var/lib/consul/pki/consul$YEAR-client.crt /var/lib/consul/pki/consul-client.crt
cmd ln -sf /var/lib/consul/pki/consul$YEAR-client.key /var/lib/consul/pki/consul-client.key
-
cmd systemctl reload consul
-cmd sleep 10
-
for file in nomad-ca.crt nomad$YEAR.crt nomad$YEAR.key \
nomad$YEAR-client.crt nomad$YEAR-client.key \
@@ -30,8 +27,8 @@ 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
- if [ "$CLUSTER" = "prod" ]; then
- cmd "chown \$(stat -c %u /var/lib/private/nomad/) /var/lib/nomad/pki/$file"
+ if [ ! "$CLUSTER" = "staging" ]; then
+ cmd "chown \$(stat -c %u /var/lib/private/nomad/) /var/lib/nomad/pki/$file"
fi
fi
done