logrotate function for Eidas log collecting servers
This commit is contained in:
parent
7061047cfc
commit
e7994628c0
2 changed files with 23 additions and 1 deletions
|
@ -127,7 +127,20 @@ class https_server {
|
|||
|
||||
}
|
||||
|
||||
class eidas_log { }
|
||||
class eidas_log {
|
||||
file {
|
||||
'/etc/logrotate.d':
|
||||
ensure => 'directory',
|
||||
mode => '0755',
|
||||
;
|
||||
'/etc/logrotate.d/eidas_logs':
|
||||
ensure => file,
|
||||
path => '/etc/logrotate.d/eidas_logs',
|
||||
mode => '0644',
|
||||
content => template('eid/eidas_logs/eidas_logs.erb'),
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
class swamid_metadata($filename=undef) {
|
||||
sunet::metadata::swamid { "$filename": }
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
/var/log/eidas_*.log {
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
su root syslog
|
||||
}
|
Loading…
Add table
Reference in a new issue