| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 class logrotate { | |
| 2 exec {'ensure_logrotate_status': | |
| 3 command => '/etc/cron.daily/logrotate', | |
| 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' | |
| 6 } | |
| 7 | |
| 8 cron {'logrotate': | |
| 9 ensure => present, | |
| 10 require => [ | |
|
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', | |
| 14 user => root, | |
| 15 hour => '0', | |
| 16 minute => '0' | |
| 17 } | |
| 18 } | |
| OLD | NEW |