mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-05-06 03:17:53 +02:00
Detections backup script
This commit is contained in:
@@ -80,6 +80,15 @@ socmotd:
|
||||
- mode: 600
|
||||
- template: jinja
|
||||
|
||||
filedetectionsbackup:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/soc/so-detections-backup.py
|
||||
- source: salt://soc/files/soc/so-detections-backup.py
|
||||
- user: 939
|
||||
- group: 939
|
||||
- mode: 600
|
||||
- show_changes: False
|
||||
|
||||
crondetectionsruntime:
|
||||
cron.present:
|
||||
- name: /usr/sbin/so-detections-runtime-status cron
|
||||
@@ -91,6 +100,17 @@ crondetectionsruntime:
|
||||
- month: '*'
|
||||
- dayweek: '*'
|
||||
|
||||
crondetectionsbackup:
|
||||
cron.present:
|
||||
- name: python3 /opt/so/conf/soc/so-detections-backup.py
|
||||
- identifier: detections-backup
|
||||
- user: root
|
||||
- minute: '0'
|
||||
- hour: '0'
|
||||
- daymonth: '*'
|
||||
- month: '*'
|
||||
- dayweek: '*'
|
||||
|
||||
socsigmafinalpipeline:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/soc/sigma_final_pipeline.yaml
|
||||
|
||||
Reference in New Issue
Block a user