summaryrefslogtreecommitdiff
path: root/puppet/modules/site_stunnel/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_stunnel/manifests/init.pp')
-rw-r--r--puppet/modules/site_stunnel/manifests/init.pp15
1 files changed, 14 insertions, 1 deletions
diff --git a/puppet/modules/site_stunnel/manifests/init.pp b/puppet/modules/site_stunnel/manifests/init.pp
index 176b8618..d919a072 100644
--- a/puppet/modules/site_stunnel/manifests/init.pp
+++ b/puppet/modules/site_stunnel/manifests/init.pp
@@ -29,7 +29,20 @@ class site_stunnel {
$client_sections = keys($clients)
site_stunnel::clients { $client_sections: }
- leap::logfile { "stunnel": process => "stunnel4" }
+ # remove any old stunnel logs that are not
+ # defined by this puppet run
+ file {'/var/log/stunnel4': purge => true;}
+
+ # the default is to keep 356 log files for each stunnel.
+ # here we set a more reasonable number.
+ augeas {
+ "logrotate_stunnel":
+ context => "/files/etc/logrotate.d/stunnel4/rule",
+ changes => [
+ 'set rotate 5',
+ ]
+ }
+
include site_stunnel::override_service
}