check that salt-master is running before requiring manager

This commit is contained in:
m0duspwnens
2022-04-11 15:09:00 -04:00
parent a2180a6721
commit 79dc2374e0

View File

@@ -1014,16 +1014,16 @@ main() {
echo "### Preparing soup at $(date) ###"
echo ""
echo "Checking to see if this is a manager."
echo ""
require_manager
if ! check_salt_master_status -t 30; then
echo "Could not talk to salt master"
echo "Please run `systemctl status salt-master` to ensure the salt-master service is running."
exit 1
fi
echo "Checking to see if this is a manager."
echo ""
require_manager
check_pillar_items
echo "Checking to see if this is an airgap install."