- 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
- 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