Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29333281: Issue 3307 - Introduce class adblockplus::log::rotation (Closed)

Created:
Jan. 7, 2016, 1:14 p.m. by mathias
Modified:
Jan. 20, 2016, 11:22 a.m.
Reviewers:
Fred
CC:
Felix Dahlke
Visibility:
Public.

Description

Note that this patch-set is based on the one proposed for Issue 3306 (see https://codereview.adblockplus.org/29333248/). Below please find a usage example with an existing Hiera/role YAML file, in order to illustrate the purpose despite no entity being configured to make use of the new roations just yet. This is the very patch that has been used to test this change-set. --- >B --- *snip* --- >B --- diff --git a/hiera/roles/web/adblockbrowser.yaml b/hiera/roles/web/adblockbrowser.yaml index 10c6aff..57a4d51 100644 --- a/hiera/roles/web/adblockbrowser.yaml +++ b/hiera/roles/web/adblockbrowser.yaml @@ -1,4 +1,5 @@ classes: + adblockplus::log: statsclient: web::server: vhost: adblockbrowser.org @@ -14,21 +15,12 @@ classes: multiplexer_locations: - /sendInstallationLink -logrotate::config: +adblockplus::log::rotations: adblockbrowser_feedback_data: - content: | - /var/log/nginx/adblockbrowser_feedback { - daily - rotate 30 - compress - missingok - nodateext - sharedscripts - postrotate - [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` - endscript - } - ensure: 'present' + path: "/var/log/nginx/adblockbrowser_feedback" + postrotate: + - "[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`" + upload: true sitescripts::configfragments: installation_link:

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -1 line) Patch
M modules/adblockplus/manifests/log.pp View 2 chunks +20 lines, -1 line 0 comments Download
A modules/adblockplus/manifests/log/rotation.pp View 1 chunk +56 lines, -0 lines 0 comments Download
A modules/adblockplus/templates/log/rotation.erb View 1 chunk +24 lines, -0 lines 0 comments Download
M modules/private-stub/hiera/base.yaml View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 2
mathias
Jan. 7, 2016, 1:14 p.m. (2016-01-07 13:14:12 UTC) #1
Fred
Jan. 18, 2016, 5:44 p.m. (2016-01-18 17:44:40 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld