From fb6a8a36ec1d2149213939b5c8ae78a0a4d1eb5c Mon Sep 17 00:00:00 2001 From: Kota Tsuyuzaki Date: Thu, 1 Dec 2022 19:21:41 +0900 Subject: [PATCH] Fix demo script to keep it as idempotent --- lustre-vm/slurm/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre-vm/slurm/install.sh b/lustre-vm/slurm/install.sh index 087b840..5143193 100644 --- a/lustre-vm/slurm/install.sh +++ b/lustre-vm/slurm/install.sh @@ -50,5 +50,7 @@ sudo systemctl enable --now slurmd sudo ssh-keygen -N "" -f /root/.ssh/id_rsa sudo sh -c "cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys" # for idempotent way, remove older host entity from known_hosts file +set +e sudo ssh-keygen -R lima-lustre +set -e sudo ssh -o StrictHostKeyChecking=no root@lima-lustre exit