diff --git a/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup b/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup index 21d74cf6f..22e0c7554 100755 --- a/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup +++ b/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup @@ -257,6 +257,7 @@ for state_attempt in {1..3}; do fi done +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 @@ -274,4 +275,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 \ No newline at end of file +fi + +printf "\nElastic Fleet setup completed successfully\n" \ No newline at end of file diff --git a/setup/so-setup b/setup/so-setup index a44934088..896505ba5 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -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