You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timeout 30 tail --pid=$MASTERPID -f /dev/null ||echo"salt-master still running at $(date +"%T.%6N") after waiting 30s. We cannot kill due to systemd restart option."
470
-
set -e
471
471
}
472
472
473
473
stop_salt_minion() {
@@ -480,12 +480,14 @@ stop_salt_minion() {
480
480
echo""
481
481
echo"Killing Salt jobs on this node."
482
482
salt-call saltutil.kill_all_jobs --local
483
+
set -e
483
484
484
485
echo"Storing salt-minion pid."
485
486
MINIONPID=$(pgrep -f '/opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion'| head -1)
486
487
echo"Found salt-minion PID $MINIONPID"
487
488
systemctl_func "stop""salt-minion"
488
489
490
+
set +e
489
491
timeout 30 tail --pid=$MINIONPID -f /dev/null ||echo"Killing salt-minion at $(date +"%T.%6N") after waiting 30s"&& pkill -9 -ef /usr/bin/salt-minion
490
492
set -e
491
493
}
@@ -618,7 +620,6 @@ upgrade_check_salt() {
618
620
if [ "$INSTALLEDSALTVERSION"=="$NEWSALTVERSION" ];then
619
621
echo"You are already running the correct version of Salt for Security Onion."
620
622
else
621
-
echo"Salt needs to be upgraded to $NEWSALTVERSION."
622
623
UPGRADESALT=1
623
624
fi
624
625
}
@@ -627,48 +628,22 @@ upgrade_salt() {
627
628
SALTUPGRADED=True
628
629
echo"Performing upgrade of Salt from $INSTALLEDSALTVERSION to $NEWSALTVERSION."
629
630
echo""
630
-
# If rhel family
631
-
if [[ $is_rpm ]];then
631
+
# If CentOS
632
+
if [[ $OS=='centos' ]];then
632
633
echo"Removing yum versionlock for Salt."
633
634
echo""
634
635
yum versionlock delete "salt-*"
635
636
echo"Updating Salt packages."
636
637
echo""
637
638
set +e
638
-
# if oracle run with -r to ignore repos set by bootstrap
Copy file name to clipboardExpand all lines: salt/salt/minion.defaults.yaml
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
# When updating the salt version, also update the version in securityonion-builds/images/iso-task/Dockerfile and saltify function in so-functions
3
3
salt:
4
4
minion:
5
-
version: 3006.3
5
+
version: 3006.1
6
6
check_threshold: 3600# in seconds, threshold used for so-salt-minion-check. any value less than 600 seconds may cause a lot of salt-minion restarts since the job to touch the file occurs every 5-8 minutes by default
0 commit comments