1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
class mail::spamassassin {
file { '/etc/default/spamassassin':
ensure => present,
owner => root,
group => root,
mode => '0644',
source => "puppet:///modules/mail/spamassassin/default",
require => Package['spamassassin'],
}
service { 'spamassassin':
name => $::lsbdistcodename ? {
'bookworm' => 'spamassassin-maintenance',
'bullseye' => 'spamassassin',
'buster' => 'spamassassin',
'stretch' => 'spamassassin',
default => 'spamassassin-maintenance',
},
ensure => $::lsbdistcodename ? {
'bookworm' => undef,
'bullseye' => running,
'buster' => running,
'stretch' => running,
default => undef,
},
enable => true,
pattern => "spamd",
require => File['/etc/default/spamassassin'],
}
file { '/etc/spamassassin/awl.pre':
ensure => present,
owner => root,
group => root,
mode => '0644',
source => "puppet:///modules/mail/spamassassin/awl.pre",
require => Package['spamassassin'],
}
}
|