blob: 1b0c1e05b78dadc288b92cb95053cd874bee3ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class site_config::syslog {
include site_apt::preferences::rsyslog
class { 'rsyslog::client':
log_remote => false,
log_local => true
}
rsyslog::snippet { '00-anonymize_logs':
content => '$ModLoad mmanon
action(type="mmanon" ipv4.bits="32" mode="rewrite")'
}
augeas {
'logrotate_leap_deploy':
context => '/files/etc/logrotate.d/leap_deploy/rule',
changes => [ 'set file /var/log/leap/deploy*.log', 'set rotate 7',
'set schedule daily', 'set compress compress',
'set missingok missingok',
'set copytruncate copytruncate' ]
}
}
|