diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-12-31 18:27:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-12-31 18:27:31 -0300 |
commit | 7719b329338edb5d24a193197d25070a818b8de7 (patch) | |
tree | 246b00e27362b5d6ad1faea8141b28f04300b9b5 | |
parent | 53366ab5601bf69fde4c8f228d0e176c1f38ba4c (diff) | |
download | puppet-mail-7719b329338edb5d24a193197d25070a818b8de7.tar.gz puppet-mail-7719b329338edb5d24a193197d25070a818b8de7.tar.bz2 |
Fix: spamassassin updates for Debian bookworm
-rw-r--r-- | manifests/spamassassin.pp | 15 |
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'], |