X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=9d712a0038d22b74a970ebe7458f2c4c0c0f46de;hb=a03c85261ca9724f599adf09d3b4b731200b0731;hp=ae66345e0ab99b8a961e5bc65326a0e9c1c66ecd;hpb=a664afb2401db77d6c7c32dce7b09ecc9995846e;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index ae66345e0..9d712a003 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -15,6 +15,11 @@ class apache2 { "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; @@ -26,6 +31,10 @@ class apache2 { 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":