spamassassin: Added custom ClamAV plugin support.

This commit is contained in:
Timo Makinen 2014-11-19 11:25:29 +02:00
parent 1c2a9acc95
commit 1f68f1edac
3 changed files with 151 additions and 0 deletions

View file

@ -110,6 +110,40 @@ class spamassassin::milter($options="") {
}
# Install ClamAV plugin for spamassassin
#
class spamassassin::plugin::clamav {
include spamassassin::common
file { "/etc/mail/spamassassin/ClamAV.pm":
ensure => present,
source => "puppet:///modules/spamassassin/ClamAV.pm",
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
}
file { "/etc/mail/spamassassin/clamav.cf":
ensure => present,
source => "puppet:///modules/spamassassin/clamav.cf",
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
require => [ File["/etc/mail/spamassassin/ClamAV.pm"],
Package["spamassassin"], ],
notify => Service["spamassassin"],
}
}
# Install iXhash plugin for spamassassin
#
class spamassassin::plugin::ixhash {