diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-05-24 10:25:22 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-05-24 10:25:22 +0000 |
commit | a7025e46068d7c5247ee62e94014d1d3d8dc5a98 (patch) | |
tree | 1f91d26158c44738498dfd7e5901b5bdcef35c32 | |
parent | 0531e92130abf093e49a929578f7b1c73d02f1dd (diff) | |
download | puppet-a7025e46068d7c5247ee62e94014d1d3d8dc5a98.tar puppet-a7025e46068d7c5247ee62e94014d1d3d8dc5a98.tar.gz puppet-a7025e46068d7c5247ee62e94014d1d3d8dc5a98.tar.bz2 puppet-a7025e46068d7c5247ee62e94014d1d3d8dc5a98.tar.xz puppet-a7025e46068d7c5247ee62e94014d1d3d8dc5a98.zip |
keep httpd logs for 24 months
-rw-r--r-- | modules/apache/manifests/init.pp | 3 | ||||
-rw-r--r-- | modules/apache/templates/logrotate | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 9e57c7e4..26ddf4f4 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -3,6 +3,9 @@ class apache { class base { $php_date_timezone = "UTC" + # number of time the log file are rotated before being removed + $httpdlogs_rotate = "24" + package { "apache-mpm-prefork": alias => apache, ensure => installed diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate index 56805675..ce5e3e84 100644 --- a/modules/apache/templates/logrotate +++ b/modules/apache/templates/logrotate @@ -1,5 +1,5 @@ /var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex { - rotate 5 + rotate <%= httpdlogs_rotate %> monthly missingok notifempty |