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
|
class postgrey {
package { postgrey:
ensure => installed
}
service { postgrey:
ensure => running,
path => "/etc/init.d/postgrey",
subscribe => [ Package[postgrey]]
}
file { "/etc/sysconfig/postgrey":
ensure => present,
owner => root,
group => root,
mode => 644,
content => template("postgrey/postgrey.sysconfig"),
notify => [ Service[postgrey] ],
require => Package[postgrey],
}
file { "/etc/postfix/postgrey_whitelist_clients.local":
ensure => present,
owner => root,
group => root,
mode => 644,
content => template("postgrey/whitelist_clients.local"),
require => Package[postgrey],
notify => [ Service[postgrey]],
}
}
|