-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add logrotate for cpantesters home var/log
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -570,6 +570,19 @@ task prepare_user => | |
PATH => '/home/cpantesters/perl5/bin:/opt/local/perlbrew/bin:/opt/local/perlbrew/perls/perl-5.24.0/bin:/usr/local/bin:/usr/bin:/bin', | ||
MAILTO => '[email protected]', | ||
}; | ||
|
||
Rex::Logger::info( 'Configuring logrotate' ); | ||
file '/etc/logrotate.d/cpantesters', | ||
source => 'etc/logrotate-cpantesters.conf', | ||
owner => 'root', | ||
group => 'root', | ||
mode => 644, | ||
; | ||
file '/home/cpantesters/var/log', | ||
ensure => 'directory', | ||
owner => 'cpantesters', | ||
group => 'cpantesters', | ||
; | ||
}; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
daily | ||
compress | ||
minsize 10M | ||
rotate 9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
daily | ||
compress | ||
minsize 10M | ||
rotate 9 | ||
notifempty | ||
|
||
/home/cpantesters/var/log/*.log { } | ||
/home/cpantesters/var/log/*/*.log { } |