spamassassin: Deploy config file
This commit is contained in:
parent
1c23696662
commit
33bfafbdbe
2 changed files with 27 additions and 0 deletions
|
@ -11,6 +11,23 @@ class spamassassin::common {
|
|||
ensure => present,
|
||||
}
|
||||
|
||||
file { "/etc/mail/spamassassin/local.cf":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
source => [
|
||||
"puppet:///files/mail/spamassassin.cf.${::homename}",
|
||||
"puppet:///files/mail/spamassassin.cf",
|
||||
"puppet:///modules/spamassassin/local.cf",
|
||||
],
|
||||
notify => Service["spamassassin"],
|
||||
require => Package["spamassassin"],
|
||||
}
|
||||
|
||||
service { "spamassassin":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue