From 496226815d20e157e18e499aa81382f7c45cad63 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 6 Sep 2023 14:24:35 +0100 Subject: [PATCH] rspamd requires Redis server. --- states/email/rspamd.sls | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/states/email/rspamd.sls b/states/email/rspamd.sls index 015fc3d..c653b41 100644 --- a/states/email/rspamd.sls +++ b/states/email/rspamd.sls @@ -12,6 +12,10 @@ rspamd: - name: rspamd - fromrepo: bullseye +redis_server: + pkg.installed: + - name: redis-server + rspamd_conf: file.recurse: - name: /etc/rspamd/local.d @@ -26,3 +30,10 @@ rspamd_service: - watch: - pkg: rspamd - file: /etc/rspamd/local.d + +redis_service: + service.running: + - name: redis-server + - enable: true + - watch: + - pkg: redis-server