diff options
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 |