]>
Commit | Line | Data |
---|---|---|
7fed35a4 IB |
1 | class base_installation::logs inherits base_installation { |
2 | class { '::logrotate': | |
3 | manage_cron_daily => false, | |
4 | config => { | |
5 | rotate_every => 'week', | |
6 | rotate => 4, | |
7 | create => true, | |
8 | compress => true, | |
9 | olddir => '/var/log/old', | |
10 | tabooext => "+ .pacorig .pacnew .pacsave", | |
11 | } | |
12 | } | |
13 | ||
14 | logrotate::rule { 'wtmp': | |
15 | path => '/var/log/wtmp', | |
16 | rotate_every => 'month', | |
17 | create => true, | |
18 | create_mode => '0664', | |
19 | create_owner => 'root', | |
20 | create_group => 'utmp', | |
21 | rotate => 1, | |
22 | minsize => '1M', | |
23 | } | |
24 | logrotate::rule { 'btmp': | |
25 | path => '/var/log/btmp', | |
26 | missingok => true, | |
27 | rotate_every => 'month', | |
28 | create => true, | |
29 | create_mode => '0600', | |
30 | create_owner => 'root', | |
31 | create_group => 'utmp', | |
32 | rotate => 1, | |
33 | } | |
34 | ||
35 | contain "::logrotate" | |
36 | } |