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

Delta Between Two Patch Sets: modules/adblockplus/manifests/web/mimeo.pp

Issue 29592640: #4724 - Restart mimeo service after log rotation (Closed)
Left Patch Set: Created Oct. 30, 2017, 5:53 p.m.
Right Patch Set: For comments 2 and 3 Created Oct. 31, 2017, 2:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # == Class: adblockplus::web::mimeo 1 # == Class: adblockplus::web::mimeo
2 # 2 #
3 # Class adblockplus::web::mimeo registers the information received in a 3 # Class adblockplus::web::mimeo registers the information received in a
4 # http/s petition with an specified format in an specific output. 4 # http/s petition with an specified format in an specific output.
5 # 5 #
6 # === Parameters: 6 # === Parameters:
7 # 7 #
8 # [*format*] 8 # [*format*]
9 # A string containing the desired format for logging. 9 # A string containing the desired format for logging.
10 # 10 #
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 # https://docs.puppet.com/puppet/latest/types/file.html#file-attribute-source 87 # https://docs.puppet.com/puppet/latest/types/file.html#file-attribute-source
88 $default_content = $rotation['source'] ? { 88 $default_content = $rotation['source'] ? {
89 undef => join([ 89 undef => join([
90 '/var/adblockplus/mimeo/data {', 90 '/var/adblockplus/mimeo/data {',
91 ' weekly', 91 ' weekly',
92 ' rotate 30', 92 ' rotate 30',
93 ' compress', 93 ' compress',
94 ' missingok', 94 ' missingok',
95 ' nodateext', 95 ' nodateext',
96 ' postrotate', 96 ' postrotate',
97 ' /bin/systemctl restart mimeo.service', 97 ' service mimeo restart',
98 ' endscript', 98 ' endscript',
99 '}', 99 '}',
100 ], "\n"), 100 ], "\n"),
101 default => undef, 101 default => undef,
102 } 102 }
103 103
104 ensure_resource('logrotate::config', 'mimeo_data', merge({ 104 ensure_resource('logrotate::config', 'mimeo_data', merge({
105 content => $default_content, 105 content => $default_content,
106 ensure => 'present', 106 ensure => 'present',
107 }, $rotation)) 107 }, $rotation))
108 } 108 }
109 109
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld