| Index: modules/adblockplus/manifests/web/mimeo.pp |
| =================================================================== |
| --- a/modules/adblockplus/manifests/web/mimeo.pp |
| +++ b/modules/adblockplus/manifests/web/mimeo.pp |
| @@ -18,10 +18,14 @@ |
| # A string (like format parameter) representing the response sent to the |
| # client. |
| # |
| +# [*rotation*] |
| +# Overwrite the default log rotation configuration |
| +# |
| class adblockplus::web::mimeo ( |
| $format = '', |
| $port = 8000, |
| $response = '', |
| + $rotation = {}, |
| ){ |
| include adblockplus |
| @@ -79,5 +83,18 @@ |
| subscribe => File['/etc/systemd/system/mimeo.service'], |
| refreshonly => true, |
| } |
| + |
| + ensure_resource('logrotate::config', 'mimeo_data', merge({ |
| + content => join([ |
|
mathias
2017/08/24 19:30:09
Not that easy, if one specifies $source the $conte
|
| + '/var/adblockplus/mimeo/data {', |
| + ' weekly', |
| + ' rotate 30', |
| + ' compress', |
| + ' missingok', |
| + ' nodateext', |
| + '}', |
| + ], "\n"), |
| + ensure => 'present', |
| + }, $rotation)) |
| } |