status messages for so-elastic-fleet-setup

This commit is contained in:
reyesj2
2026-07-10 12:50:21 -05:00
parent 8b0759866e
commit 7d17784e96
2 changed files with 5 additions and 2 deletions
@@ -250,6 +250,7 @@ if ! salt-call state.apply elasticfleet queue=True; then
exit 1
fi
printf "\nRunning so-elastic-agent-gen-installers\n"
# Generate installers & install Elastic Agent on the node
for agent_gen_attempt in {1..3}; do
if so-elastic-agent-gen-installers; then
@@ -267,4 +268,6 @@ printf "\nApplying elasticfleet.install_agent_grid state\n"
if ! salt-call state.apply elasticfleet.install_agent_grid queue=True; then
printf "\nFailure(s) in elasticfleet.install_agent_grid state... Exiting...\n"
exit 1
fi
fi
printf "\nElastic Fleet setup completed successfully\n"
+1 -1
View File
@@ -793,7 +793,7 @@ if ! [[ -f $install_opt_file ]]; then
logCmd "so-soc-restart"
title "Setting up Elastic Fleet"
logCmd "salt-call state.apply elasticfleet.config"
if ! logCmd so-elastic-fleet-setup; then
if ! so-elastic-fleet-setup; then
fail_setup "Failed to run so-elastic-fleet-setup"
fi
mark_setup_complete