diff --git a/salt/common/init.sls b/salt/common/init.sls index 896e0f025..0df5b4953 100644 --- a/salt/common/init.sls +++ b/salt/common/init.sls @@ -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 %} \ No newline at end of file +{% endif %}