| Index: modules/adblockplus/manifests/log/rotation.pp |
| =================================================================== |
| --- a/modules/adblockplus/manifests/log/rotation.pp |
| +++ b/modules/adblockplus/manifests/log/rotation.pp |
| @@ -20,6 +20,9 @@ |
| # A single command string or multiple commands in array form, to |
| # become exectued after every successful rotation. |
| # |
| +# [*upload*] |
| +# Whether to export the rotated *.1.gz to the $adblockplus::log::uplink. |
| +# |
| # === Examples: |
| # |
| # adblockplus::log::rotation {'nginx_error_log': |
| @@ -30,6 +33,7 @@ |
| # postrotate => [ |
| # '[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`', |
| # ], |
| +# upload => true, |
| # } |
| # |
| define adblockplus::log::rotation ( |
| @@ -38,6 +42,7 @@ |
| $interval = 'daily', |
| $path = "/var/log/$name", |
| $postrotate = [], |
| + $upload = false, |
| ) { |
| include adblockplus::log |