mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Add playbook updates
This commit is contained in:
@@ -108,6 +108,15 @@ masterunlock() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playbook() {
|
||||||
|
echo "Applying playbook settings"
|
||||||
|
if [[ "$INSTALLEDVERSION" =~ rc.1 ]]; then
|
||||||
|
salt-call state.apply playbook.db_init
|
||||||
|
rm -f /opt/so/rules/elastalert/playbook/*.yaml
|
||||||
|
so-playbook-ruleupdate >> /root/soup_playbook_rule_update.log 2>&1 &
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
pillar_changes() {
|
pillar_changes() {
|
||||||
# This function is to add any new pillar items if needed.
|
# This function is to add any new pillar items if needed.
|
||||||
echo "Checking to see if pillar changes are needed."
|
echo "Checking to see if pillar changes are needed."
|
||||||
@@ -387,6 +396,8 @@ masterunlock
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Starting Salt Master service."
|
echo "Starting Salt Master service."
|
||||||
systemctl start salt-master
|
systemctl start salt-master
|
||||||
|
highstate
|
||||||
|
playbook
|
||||||
|
|
||||||
SALTUPGRADED="True"
|
SALTUPGRADED="True"
|
||||||
if [[ "$SALTUPGRADED" == "True" ]]; then
|
if [[ "$SALTUPGRADED" == "True" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user