blob: b414b82c315b60599c42e8d1db9fd59eefcdab81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class site_webapp::logging {
rsyslog::snippet { '01-webapp':
content => 'if $programname == "webapp" then /var/log/leap/webapp.log
&~'
}
augeas {
'logrotate_webapp':
context => '/files/etc/logrotate.d/webapp/rule',
changes => [ 'set file /var/log/leap/webapp.log', 'set rotate 7',
'set schedule daily', 'set compress compress',
'set missingok missingok', 'set ifempty notifempty',
'set copytruncate copytruncate' ]
}
}
|