From f9c50bea644eafdabd7beedbbfeb15c3109ad11f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Fri, 14 Jun 2024 09:24:37 +0000
Subject: [PATCH] Wait only on FIP in staging - no public adresses on the
 machines

---
 staging/deploy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/staging/deploy.sh b/staging/deploy.sh
index 06fc8bd..aeeb651 100755
--- a/staging/deploy.sh
+++ b/staging/deploy.sh
@@ -24,7 +24,7 @@ echo "Terraform finished. Continue? (CTRL-C to quit)"
 read -r _
 
 # wait for ping and ssh
-for ip in $(cat terraform/hosts.txt); do
+for ip in $(cat terraform/fip.txt); do
 	while ! ping -c 1 "$ip"; do sleep 5; done
 	ssh-keygen -R "$ip"
 	while ! ssh egi@"$ip" -o ConnectTimeout=10 -o PreferredAuthentications=publickey -o StrictHostKeyChecking=no :; do sleep 10; done
-- 
GitLab