Refactor & cleanup

This commit is contained in:
Josh Brower
2023-11-02 10:20:32 -04:00
parent c230cf4eb7
commit 5388b92865
4 changed files with 49 additions and 16 deletions

View File

@@ -768,8 +768,10 @@ if ! [[ -f $install_opt_file ]]; then
info "Restarting SOC to pick up initial user"
logCmd "so-soc-restart"
title "Setting up Elastic Fleet"
logCmd "salt-call state.apply elasticfleet.config"
logCmd "so-elastic-fleet-setup"
logCmd "salt-call state.apply elasticfleet.config"
if ! logCmd so-setup-elastic-fleet; then
fail_setup
fi
if [[ ! $is_import ]]; then
title "Setting up Playbook"
logCmd "so-playbook-reset"