Add cron job to common state for daily config backup

This commit is contained in:
Wes Lambert
2020-09-23 13:55:32 +00:00
parent 57732b360e
commit 71734ddc0a

View File

@@ -192,6 +192,18 @@ sensorrotateconf:
{% 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
docker:
service.running:
@@ -203,4 +215,4 @@ common_state_not_allowed:
test.fail_without_changes:
- name: common_state_not_allowed
{% endif %}
{% endif %}