--- /dev/null
+
+apt-logrotate:
+ pkg.installed:
+ - name: logrotate
+
+apt-logrotate.d:
+ file.directory:
+ - name: /etc/logrotate.d
+ - require:
+ - pkg: apt-logrotate
+
+apt-log-olddir:
+ file.directory:
+ - name: /var/log/.old
+ - user: root
+ - group: root
+ - dir_mode: 755
+
+apt-logrotate.conf:
+ file.managed:
+ - name: /etc/logrotate.d/apt
+ - source: salt://debian/apt/files/logrotate-apt.conf
+ - user: root
+ - group: root
+ - mode: 644
+ - require:
+ - pkg: apt-logrotate
+ - file: apt-logrotate.d
+
+aptitude-logrotate.conf:
+ file.managed:
+ - name: /etc/logrotate.d/aptitude
+ - source: salt://debian/apt/files/logrotate-aptitude.conf
+ - user: root
+ - group: root
+ - mode: 644
+ - require:
+ - pkg: apt-logrotate
+ - file: apt-logrotate.d
+ - file: apt-log-olddir
+
+dpkg-logrotate.conf:
+ file.managed:
+ - name: /etc/logrotate.d/dpkg
+ - source: salt://debian/apt/files/logrotate-dpkg.conf
+ - user: root
+ - group: root
+ - mode: 644
+ - require:
+ - pkg: apt-logrotate
+ - file: apt-logrotate.d
+ - file: apt-log-olddir
+