From 8408628b0313cc48ed5e87013f7d61b8a5977003 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 12 Apr 2022 13:54:08 -0400 Subject: [PATCH] Stop thehive on soup --- salt/common/tools/sbin/soup | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 70e300cb0..0db0e8b84 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -422,6 +422,7 @@ preupgrade_changes() { [[ "$INSTALLEDVERSION" == 2.3.80 ]] && up_to_2.3.90 [[ "$INSTALLEDVERSION" == 2.3.90 || "$INSTALLEDVERSION" == 2.3.91 ]] && up_to_2.3.100 [[ "$INSTALLEDVERSION" == 2.3.100 ]] && up_to_2.3.110 + [[ "$INSTALLEDVERISON" == 2.3.110 ]] && up_to_2.3.120 true } @@ -435,6 +436,8 @@ postupgrade_changes() { [[ "$POSTVERSION" == 2.3.60 || "$POSTVERSION" == 2.3.61 || "$POSTVERSION" == 2.3.70 || "$POSTVERSION" == 2.3.80 ]] && post_to_2.3.90 [[ "$POSTVERSION" == 2.3.90 || "$POSTVERSION" == 2.3.91 ]] && post_to_2.3.100 [[ "$POSTVERSION" == 2.3.100 ]] && post_to_2.3.110 + [[ "$POSTVERSION" == 2.3.110 ]] && post_to_2.3.120 + true } @@ -498,6 +501,13 @@ post_to_2.3.110() { POSTVERSION=2.3.110 } +post_to_2.3.120() { + echo "Post Processing for 2.3.120" + POSTVERSION=2.3.120 +} + + + stop_salt_master() { # kill all salt jobs across the grid because the hang indefinitely if they are queued and salt-master restarts set +e @@ -749,11 +759,16 @@ up_to_2.3.100() { } up_to_2.3.110() { - echo "Updating to Security Onion 2.3.110" - echo "Updating shard settings for Elasticsearch index templates" sed -i 's|shards|index_template:\n template:\n settings:\n index:\n number_of_shards|g' /opt/so/saltstack/local/pillar/global.sls } +up_to_2.3.120() { + # Stop thehive services since these will be broken in .120 + so-thehive-stop + so-thehive-es-stop + so-cortex-stop + } + verify_upgradespace() { CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//') if [ "$CURRENTSPACE" -lt "10" ]; then