From b6b4ec30f554706a66bf26b19e1bafa3060143e6 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sun, 28 Feb 2016 20:11:26 +0100 Subject: [PATCH] Adding two logrotate directories --- basic/rsyslog.sls | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.39.5