From 84f9bbbc10b8a27d29656f33cd3f17267e678384 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Feb 2016 19:15:07 +0100 Subject: [PATCH] State for /etc/logrotate.d/rsyslog --- basic/rsyslog.sls | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + -- 2.39.5