From 1761ca0995d3cd2b1c784d24aa40833763a5dd22 Mon Sep 17 00:00:00 2001
From: Rob Kooper <kooper@illinois.edu>
Date: Wed, 3 Jul 2024 14:55:26 -0500
Subject: [PATCH] curl instead of ping

---
 CHANGELOG.md                                    | 7 +++++--
 terraform/modules/rke1/templates/user_data.tmpl | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index defb498..f490033 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,14 +4,17 @@ All notable changes to this project will be documented in this file.
 
 The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
 
-## 3.1.1 - 2024-06-08
+## 3.1.2 - 2024-07-03
 
 ### Changed
+- use curl https://ncsa.illinois.edu/ to see if network is alive
+
+## 3.1.1 - 2024-06-08
 
+### Changed
 - healthmonitor/longhorn are now disabled by default
 
 ### Fixed 
-
 - missing secret/storageclass additional helm charts for manila
 - ability to enable/disable permissions fix for acme
 
diff --git a/terraform/modules/rke1/templates/user_data.tmpl b/terraform/modules/rke1/templates/user_data.tmpl
index 7012728..dee3595 100644
--- a/terraform/modules/rke1/templates/user_data.tmpl
+++ b/terraform/modules/rke1/templates/user_data.tmpl
@@ -109,7 +109,7 @@ write_files:
   content: |
     #!/usr/bin/bash
     echo "sleeping to wait for network"
-    while ! ping -c 1 -w 0  1.1.1.1 > /dev/null ; do echo "Sleep 10s"; sleep 10; done
+    while ! curl --fail --silent --output /dev/null http://ncsa.illinois.edu ; do echo "Sleep 10s"; sleep 10; done
 %{ if ncsa_security }
     sysctl -w net.ipv6.conf.all.disable_ipv6=1
     sysctl -w net.ipv6.conf.default.disable_ipv6=1
-- 
GitLab