From 7719b329338edb5d24a193197d25070a818b8de7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 31 Dec 2024 18:27:31 -0300 Subject: Fix: spamassassin updates for Debian bookworm --- manifests/spamassassin.pp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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'], -- cgit v1.2.3