aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/apache/manifests/init.pp3
-rw-r--r--modules/apache/templates/logrotate2
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