From: Frank Brehm Date: Thu, 25 Feb 2016 18:15:07 +0000 (+0100) Subject: State for /etc/logrotate.d/rsyslog X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=84f9bbbc10b8a27d29656f33cd3f17267e678384;p=salt%2Fstates.git State for /etc/logrotate.d/rsyslog --- diff --git a/basic/rsyslog.sls b/basic/rsyslog.sls index 7e77f11..d044bf9 100644 --- a/basic/rsyslog.sls +++ b/basic/rsyslog.sls @@ -57,3 +57,18 @@ rsyslog: - file: /etc/rsyslog.d - file: /var/log/syslog.d +/etc/logrotate.d/rsyslog: + file.managed: + - user: root + - group: root + - mode: 644 + - source: salt://basic/files/rsyslog.logrotate.conf + - backup: minion + - onlyif: + - test -d /etc/logrotate.d + - require: + - pkg: rsyslog + - file: /etc/rsyslog.conf + - file: /etc/rsyslog.d/60-default.conf + - file: /etc/rsyslog.d/70-pb.conf +