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

Delta Between Two Patch Sets: modules/logrotate/manifests/init.pp

Issue 9351014: Add logrotate cronjob to all servers, don`t run logrotate unnecessarily on provisioning and use con… (Closed)
Left Patch Set: Created Feb. 7, 2013, 3:06 p.m.
Right Patch Set: Created Feb. 8, 2013, 8:19 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 | « modules/filterserver/manifests/init.pp ('k') | modules/nginx/files/logrotate » ('j') | 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 logrotate { 1 class logrotate {
2 exec {'ensure_logrotate_status': 2 exec {'ensure_logrotate_status':
3 command => '/etc/cron.daily/logrotate', 3 command => '/etc/cron.daily/logrotate',
4 path => [ "/usr/bin/", "/bin/" ], 4 path => ["/usr/bin/", "/bin/"],
Felix Dahlke 2013/02/07 15:38:41 Mind getting rid of the whitespace between path an
5 onlyif => 'test ! -f /var/lib/logrotate/status' 5 onlyif => 'test ! -f /var/lib/logrotate/status'
6 } 6 }
7 7
8 cron {'logrotate': 8 cron {'logrotate':
9 ensure => present, 9 ensure => present,
10 require => [ 10 require => Exec['ensure_logrotate_status'],
Felix Dahlke 2013/02/07 15:38:41 Should be fine without the enclosing square bracke
11 Exec['ensure_logrotate_status']
12 ],
13 command => '/usr/sbin/logrotate /etc/logrotate.conf', 11 command => '/usr/sbin/logrotate /etc/logrotate.conf',
14 user => root, 12 user => root,
15 hour => '0', 13 hour => '0',
16 minute => '0' 14 minute => '0'
17 } 15 }
18 } 16 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld