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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
class mail::amavisd {
service { "amavis":
ensure => running,
pattern => 'amavisd',
require => [ Package['amavisd-new'], Service['clamav-daemon', 'spamassassin'] ],
}
file { "/etc/amavis/conf.d/05-domain_id":
ensure => present,
owner => root,
group => root,
mode => 0644,
source => "puppet:///modules/mail/amavisd/05-domain_id",
notify => Service['amavis'],
}
file { "/etc/amavis/conf.d/15-content_filter_mode":
ensure => present,
owner => root,
group => root,
mode => 0644,
source => "puppet:///modules/mail/amavisd/15-content_filter_mode",
notify => Service['amavis'],
}
file { "/etc/amavis/conf.d/20-debian_defaults":
ensure => present,
owner => root,
group => root,
mode => 0644,
source => "puppet:///modules/mail/amavisd/20-debian_defaults",
notify => Service['amavis'],
}
file { "/etc/amavis/conf.d/50-user":
ensure => present,
owner => root,
group => root,
mode => 0644,
source => "puppet:///modules/mail/amavisd/50-user",
notify => Service['amavis'],
}
case $lsbdistcodename {
'lenny': { }
default: {
file { "/etc/amavis/conf.d/05-node_id":
ensure => present,
owner => root,
group => root,
mode => 0644,
content => template('mail/amavisd/05-node_id.erb'),
notify => Service['amavis'],
}
}
}
group { 'amavis':
ensure => present,
}
user { 'amavis':
ensure => present,
gid => 'amavis',
require => Group['amavis'],
}
}
|