add pause allowing fleet server to come up prior to health check

This commit is contained in:
reyesj2
2026-08-24 11:03:18 -05:00
parent fa536e24c6
commit eb2ee43679
+2
View File
@@ -352,6 +352,8 @@ check_fleet_server() {
docker stop so-elastic-fleet; docker rm -f so-elastic-fleet
printf "\nUpdated sysctl fs.protected_symlinks. Restarting fleet before running health check and continuing with soup.\n"
salt-call state.apply elasticfleet queue=True
echo "Fleet restarted, waiting 2 minutes before checking fleet health and continuing SOUP...";
for i in {1..12}; do printf "."; sleep 10; done
fi
# Modeled on the wait_for_so-elastic-fleet state check in elasticfleet/enabled.sls,