--- /dev/null
+/var/log/apache2/*.log {
+ daily
+ datext
+ missingok
+ rotate 360
+ compress
+ delaycompress
+ notifempty
+ create 644 root adm
+ sharedscripts
+ postrotate
+ if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
+ /etc/init.d/apache2 reload > /dev/null
+ fi
+ endscript
+}
"puppet:///apache2/common/etc/apache2/sites-available/default-debian.org" ],
require => Package["apache2"],
notify => Exec["apache2 reload"];
+
+ "/etc/logroate.d/apache2":
+ source => [ "puppet:///apache2/per-host/$fqdn/etc/logroate.d/apache2",
+ "puppet:///apache2/common/etc/logroate.d/apache2" ];
+
"/srv/www":
mode => 755,
ensure => directory;
ensure => directory;
"/srv/www/default.debian.org/htdocs/index.html":
content => template("default-index.html");
+
+ "/var/log/apache2":
+ mode => 755,
+ ensure => directory;
}
exec { "apache2 reload":