aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-27 14:18:43 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-27 14:18:43 +0100
commit02ed668286cebfa3ac079ab5263950a22816f61c (patch)
tree10d132a483e789c2a24c37fc9bed63e1ec63f340 /deploy.sh
parent7d486b3907cdd902d38d799eba9651966f0e7c4f (diff)
downloadnixcfg-02ed668286cebfa3ac079ab5263950a22816f61c.tar.gz
nixcfg-02ed668286cebfa3ac079ab5263950a22816f61c.zip
Remove mount garage using rclone systemd service
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/deploy.sh b/deploy.sh
index 7527f7f..74949b8 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -46,8 +46,8 @@ for NIXHOST in $NIXHOSTLIST; do
cat cluster/$CLUSTER/node/$NIXHOST.site.nix | ssh -F $SSH_CONFIG $SSH_DEST tee $TMP_PATH/site.nix > /dev/null
echo "Sending secret files"
- for SECRET in rclone.conf \
- pki/consul-ca.crt pki/consul$YEAR.crt pki/consul$YEAR.key pki/consul$YEAR-client.crt pki/consul$YEAR-client.key \
+ for SECRET in pki/consul-ca.crt pki/consul$YEAR.crt pki/consul$YEAR.key \
+ pki/consul$YEAR-client.crt pki/consul$YEAR-client.key \
pki/nomad-ca.crt pki/nomad$YEAR.crt pki/nomad$YEAR.key; do
test -f cluster/$CLUSTER/secrets/$SECRET && (cat cluster/$CLUSTER/secrets/$SECRET | ssh -F $SSH_CONFIG $SSH_DEST tee $TMP_PATH/$SECRET > /dev/null)
done
@@ -62,8 +62,6 @@ mv deuxfleurs.nix remote-unlock.nix configuration.nix cluster.nix node.nix site.
nixos-rebuild switch
-test -f rclone.conf && (mv rclone.conf /root; chmod 600 /root/rclone.conf)
-
mkdir -p /var/lib/nomad/pki /var/lib/consul/pki
if [ -f pki/consul-ca.crt ]; then