spamassassin: Moved pyzor plugin to spamassassin::plugin subclass and added restarting spamassassin after install.
This commit is contained in:
parent
0dde4f2ddb
commit
ac61c46322
1 changed files with 5 additions and 2 deletions
|
@ -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":
|
package { "pyzor":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
@ -145,6 +147,7 @@ class spamassassin::pyzor {
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
require => File["/etc/mail/pyzor/servers"],
|
require => File["/etc/mail/pyzor/servers"],
|
||||||
|
notify => Service["spamassassin"],
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue