Pārlūkot izejas kodu

Added state for configuring logrotate

master
Bogdan Radulescu pirms 9 gadiem
vecāks
revīzija
d7b28dd4fb
1 mainītis faili ar 24 papildinājumiem un 0 dzēšanām
  1. +24
    -0
      apache/logrotate.sls

+ 24
- 0
apache/logrotate.sls Parādīt failu

@@ -0,0 +1,24 @@
/etc/logrotate.d/apache2:
file:
- managed
- contents: |
/var/log/apache2/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
fi;
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}

Notiek ielāde…
Atcelt
Saglabāt