allow soup to run on import node

This commit is contained in:
m0duspwnens
2020-08-12 15:48:34 -04:00
parent 5d5fcecdca
commit f59b8683ae

View File

@@ -27,7 +27,7 @@ exec 3>&1 1>${SOUP_LOG} 2>&1
manager_check() { manager_check() {
# Check to see if this is a manager # Check to see if this is a manager
MANAGERCHECK=$(cat /etc/salt/grains | grep role | awk '{print $2}') MANAGERCHECK=$(cat /etc/salt/grains | grep role | awk '{print $2}')
if [[ "$MANAGERCHECK" =~ ^('so-eval'|'so-manager'|'so-standalone'|'so-managersearch')$ ]]; then if [[ "$MANAGERCHECK" =~ ^('so-eval'|'so-manager'|'so-standalone'|'so-managersearch'|'so-import')$ ]]; then
echo "This is a manager. We can proceed." echo "This is a manager. We can proceed."
else else
echo "Please run soup on the manager. The manager controls all updates." echo "Please run soup on the manager. The manager controls all updates."