1 |
class postgrey { |
class postgrey { |
2 |
package { postgrey: } |
package { 'postgrey': } |
3 |
|
|
4 |
service { postgrey: |
service { 'postgrey': |
5 |
subscribe => Package[postgrey], |
subscribe => Package['postgrey'], |
6 |
} |
} |
7 |
|
|
8 |
File { |
File { |
9 |
notify => Service[postgrey], |
notify => Service['postgrey'], |
10 |
require => Package[postgrey], |
require => Package['postgrey'], |
11 |
} |
} |
12 |
|
|
13 |
file { |
file { |
14 |
"/etc/sysconfig/postgrey": |
'/etc/sysconfig/postgrey': |
15 |
content => template("postgrey/postgrey.sysconfig"); |
content => template('postgrey/postgrey.sysconfig'); |
16 |
"/etc/postfix/postgrey_whitelist_clients.local": |
'/etc/postfix/postgrey_whitelist_clients.local': |
17 |
content => template("postgrey/whitelist_clients.local"); |
content => template('postgrey/whitelist_clients.local'); |
18 |
} |
} |
19 |
} |
} |