From ac61c463227bbadaff8a8ad96283e06d0c8fd2e0 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 19 Nov 2014 11:21:11 +0200 Subject: [PATCH] spamassassin: Moved pyzor plugin to spamassassin::plugin subclass and added restarting spamassassin after install. --- spamassassin/manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spamassassin/manifests/init.pp b/spamassassin/manifests/init.pp index b3c4074..8480bd0 100644 --- a/spamassassin/manifests/init.pp +++ b/spamassassin/manifests/init.pp @@ -110,9 +110,11 @@ class spamassassin::milter($options="") { } -# Install pyzor module for spamassassin +# Install pyzor plugin for spamassassin # -class spamassassin::pyzor { +class spamassassin::plugin::pyzor { + + include spamassassin::common package { "pyzor": ensure => installed, @@ -145,6 +147,7 @@ class spamassassin::pyzor { owner => "root", group => "root", require => File["/etc/mail/pyzor/servers"], + notify => Service["spamassassin"], } }