Commit 2823b890 authored by taggart's avatar taggart
Browse files

move some more stuff here from the riseup site-sympa module

parent 04ab75af
......@@ -36,3 +36,10 @@ class sympa::fcgid::debian {
ensure => installed;
}
}
class sympa::samilter::debian {
package {
"spamass-milter":
ensure => installed;
}
}
......@@ -11,6 +11,7 @@ class sympa {
if $sympa_fastcgi { include sympa::fastcgi }
if $sympa_fcgid { include sympa::fcgid }
if $sympa_samilter { include sympa::samilter }
}
......
class sympa::samilter {
case $operatingsystem {
debian: { include sympa::samilter::debian }
default: { include sympa::samilter::default }
}
file {
"/var/run/sendmail":
ensure => directory,
mode => 0777, owner => postfix, group => postfix;
"/var/run/spamass/spamass.sock":
ensure => present,
mode => 0755, owner => postfix, group => postfix;
# FIXME: is /etc/default debian specific? fix if yes
"/etc/default/spamass-milter":
source => "$fileserver/spamassassin/spamass-milter_default",
require => Package["spamass-milter"],
mode => 0644, owner => root, group => root;
}
service {
"spamass-milter":
name => spamass-milter,
pattern => '/usr/sbin/spamass-milter',
enable => true,
ensure => running,
hasrestart => true,
subscribe => File["/etc/default/spamass-milter"],
require => File["/etc/default/spamass-milter"];
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment