1 |
class spamassassin { |
2 |
# it should also requires make, bug fixed in cooker |
3 |
package { "spamassassin-sa-compile": |
4 |
ensure => installed, |
5 |
notify => Exec["sa-compile"], |
6 |
} |
7 |
|
8 |
package { "spamassassin": |
9 |
ensure => installed, |
10 |
} |
11 |
|
12 |
file { "/etc/mail/spamassassin/local.cf": |
13 |
ensure => present, |
14 |
owner => root, |
15 |
group => root, |
16 |
mode => 644, |
17 |
require => Package["spamassassin"], |
18 |
content => template('spamassassin/local.cf') |
19 |
} |
20 |
|
21 |
exec { "sa-compile": |
22 |
refreshonly => true, |
23 |
require => [Package["spamassassin-sa-compile"],Package["spamassassin"]] |
24 |
} |
25 |
} |