mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Add cron job to common state for daily config backup
This commit is contained in:
@@ -192,6 +192,18 @@ sensorrotateconf:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if role in ['eval', 'manager', 'managersearch', 'standalone'] %}
|
||||||
|
# Add config backup
|
||||||
|
/usr/sbin/so-config-backup:
|
||||||
|
cron.present:
|
||||||
|
- user: root
|
||||||
|
- minute: '1'
|
||||||
|
- hour: '0'
|
||||||
|
- daymonth: '*'
|
||||||
|
- month: '*'
|
||||||
|
- dayweek: '*'
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Make sure Docker is always running
|
# Make sure Docker is always running
|
||||||
docker:
|
docker:
|
||||||
service.running:
|
service.running:
|
||||||
|
|||||||
Reference in New Issue
Block a user