summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/spamassassin.pp15
1 files changed, 14 insertions, 1 deletions
diff --git a/manifests/spamassassin.pp b/manifests/spamassassin.pp
index ea03567..6b56961 100644
--- a/manifests/spamassassin.pp
+++ b/manifests/spamassassin.pp
@@ -9,7 +9,20 @@ class mail::spamassassin {
}
service { 'spamassassin':
- ensure => running,
+ name => $::lsbdistcodename ? {
+ 'bookworm' => 'spamassassin-maintenance',
+ 'bullseye' => 'spamassassin',
+ 'buster' => 'spamassassin',
+ 'stretch' => 'spamassassin',
+ default => 'spamassassin-maintenance',
+ },
+ ensure => $::lsbdistcodename ? {
+ 'bookworm' => undef,
+ 'bullseye' => running,
+ 'buster' => running,
+ 'stretch' => running,
+ default => undef,
+ },
enable => true,
pattern => "spamd",
require => File['/etc/default/spamassassin'],