mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-07-22 08:45:40 +02:00
status messages for so-elastic-fleet-setup
This commit is contained in:
@@ -250,6 +250,7 @@ if ! salt-call state.apply elasticfleet queue=True; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
printf "\nRunning so-elastic-agent-gen-installers\n"
|
||||||
# Generate installers & install Elastic Agent on the node
|
# Generate installers & install Elastic Agent on the node
|
||||||
for agent_gen_attempt in {1..3}; do
|
for agent_gen_attempt in {1..3}; do
|
||||||
if so-elastic-agent-gen-installers; then
|
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
|
if ! salt-call state.apply elasticfleet.install_agent_grid queue=True; then
|
||||||
printf "\nFailure(s) in elasticfleet.install_agent_grid state... Exiting...\n"
|
printf "\nFailure(s) in elasticfleet.install_agent_grid state... Exiting...\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
printf "\nElastic Fleet setup completed successfully\n"
|
||||||
+1
-1
@@ -793,7 +793,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
logCmd "so-soc-restart"
|
logCmd "so-soc-restart"
|
||||||
title "Setting up Elastic Fleet"
|
title "Setting up Elastic Fleet"
|
||||||
logCmd "salt-call state.apply elasticfleet.config"
|
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"
|
fail_setup "Failed to run so-elastic-fleet-setup"
|
||||||
fi
|
fi
|
||||||
mark_setup_complete
|
mark_setup_complete
|
||||||
|
|||||||
Reference in New Issue
Block a user