apply salt.master and minion state early in setup to prevent the services from restarting later in setup

This commit is contained in:
m0duspwnens
2023-10-16 14:58:58 -04:00
parent 07902d17cc
commit a637b0e61b

View File

@@ -714,6 +714,7 @@ if ! [[ -f $install_opt_file ]]; then
logCmd "salt-call state.apply common.packages"
logCmd "salt-call state.apply common"
logCmd "salt-call state.apply salt.master"
logCmd "salt-call state.apply docker"
firewall_generate_templates
set_initial_firewall_policy
@@ -768,8 +769,6 @@ if ! [[ -f $install_opt_file ]]; then
checkin_at_boot
set_initial_firewall_access
logCmd "salt-call schedule.enable -linfo --local"
systemctl restart salt-master
systemctl restart salt-minion
verify_setup
else
touch /root/accept_changes