Move to new house

This commit is contained in:
Pim Kunis 2025-04-30 22:29:13 +02:00
parent 2371c6f03f
commit 241847c7c7
4 changed files with 13 additions and 9 deletions

View file

@ -23,7 +23,7 @@ done
first_server="${SERVERS%% *}"
previous_manifest=$(
envsubst <<EOF | ssh -T "root@$first_server.dmz"
envsubst <<EOF | ssh -T "root@$first_server"
if [[ -f "$GCROOTDIR/$NAME.yml" ]]; then
cat "$GCROOTDIR/$NAME.yml"
fi
@ -46,7 +46,7 @@ read -r -p "Continue? " _
echo Uploading closure...
for server in $SERVERS; do
echo Uploading closure to "$server"...
nix copy --to "ssh://root@$server.dmz" "$MANIFEST"
nix copy --to "ssh://root@$server" "$MANIFEST"
done
echo Applying Kubernetes manifest...
@ -59,7 +59,7 @@ vals eval -fail-on-missing-key-in-map <"$MANIFEST" |
echo Creating GC roots
for server in $SERVERS; do
ssh "root@$server.dmz" "mkdir -p $GCROOTDIR && ln -sf $MANIFEST $GCROOTDIR/${NAME}.yml"
ssh "root@$server" "mkdir -p $GCROOTDIR && ln -sf $MANIFEST $GCROOTDIR/${NAME}.yml"
done
if $CREATE_LOCAL_GCROOT; then