mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
33 lines
758 B
Plaintext
33 lines
758 B
Plaintext
{% from 'logrotate/map.jinja' import LOGROTATEMERGED %}
|
|
|
|
logrotateconfdir:
|
|
file.directory:
|
|
- name: /opt/so/conf/logrotate
|
|
- makedirs: True
|
|
|
|
commonlogrotatescript:
|
|
file.managed:
|
|
- name: /usr/local/bin/common-rotate
|
|
- source: salt://logrotate/tools/sbin/common-rotate
|
|
- mode: 755
|
|
|
|
commonlogrotateconf:
|
|
file.managed:
|
|
- name: /opt/so/conf/logrotate/common-rotate.conf
|
|
- source: salt://logrotate/etc/rotate.conf.jinja
|
|
- template: jinja
|
|
- mode: 644
|
|
- defaults:
|
|
CONFIG: {{ LOGROTATEMERGED.config }}
|
|
|
|
common-rotate:
|
|
cron.present:
|
|
- name: /usr/local/bin/common-rotate
|
|
- identifier: common-rotate
|
|
- user: root
|
|
- minute: '1'
|
|
- hour: '0'
|
|
- daymonth: '*'
|
|
- month: '*'
|
|
- dayweek: '*'
|