flake.nix: parallelize copying in nomad-job-*

This commit is contained in:
Astro 2022-09-22 02:01:23 +02:00
parent 93fc2736bb
commit 52dd8af180
1 changed files with 2 additions and 1 deletions

View File

@ -435,7 +435,7 @@
for h in server9 server10 ; do
echo Sharing with $h
ssh root@$h.cluster.zentralwerk.org -- \
bash -e <<EOF
bash -e <<EOF &
nix copy --from https://hydra.hq.c3d2.de $JOB
mkdir -p /glusterfs/fast/microvms/${name}
chown microvm:kvm /glusterfs/fast/microvms/${name}
@ -445,6 +445,7 @@
ln -sfT $JOB /nix/var/nix/gcroots/microvm/${name}
EOF
done
wait
echo Now starting the job
ssh root@hydra.serv.zentralwerk.org -- \