diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-27 14:18:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-02-27 14:18:43 +0100 |
commit | 02ed668286cebfa3ac079ab5263950a22816f61c (patch) | |
tree | 10d132a483e789c2a24c37fc9bed63e1ec63f340 /deploy.sh | |
parent | 7d486b3907cdd902d38d799eba9651966f0e7c4f (diff) | |
download | nixcfg-02ed668286cebfa3ac079ab5263950a22816f61c.tar.gz nixcfg-02ed668286cebfa3ac079ab5263950a22816f61c.zip |
Remove mount garage using rclone systemd service
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |