From: Frank Brehm Date: Sun, 28 Feb 2016 19:11:26 +0000 (+0100) Subject: Adding two logrotate directories X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=b6b4ec30f554706a66bf26b19e1bafa3060143e6;p=salt%2Fstates.git Adding two logrotate directories --- diff --git a/basic/rsyslog.sls b/basic/rsyslog.sls index d044bf9..5ec5e59 100644 --- a/basic/rsyslog.sls +++ b/basic/rsyslog.sls @@ -57,6 +57,20 @@ rsyslog: - file: /etc/rsyslog.d - file: /var/log/syslog.d +/var/log/.old: + file.directory: + - user: root + - group: root + - dir_mode: 755 + +/var/log/syslog.d/.old: + file.directory: + - user: root + - group: root + - dir_mode: 755 + - require: + - file: /var/log/syslog.d + /etc/logrotate.d/rsyslog: file.managed: - user: root @@ -71,4 +85,6 @@ rsyslog: - file: /etc/rsyslog.conf - file: /etc/rsyslog.d/60-default.conf - file: /etc/rsyslog.d/70-pb.conf + - file: /var/log/.old + - file: /var/log/syslog.d/.old