MythicSalt/states/email/rspamd.sls

40 lines
846 B
Plaintext
Raw Permalink Normal View History

2023-12-06 16:03:52 +00:00
# Stock bullseye rspamd didn't start. bullseye-backports didn't
# work with Exim.
rspamd_repo:
pkgrepo.managed:
2023-12-06 16:03:52 +00:00
- name: deb [arch=arm64] http://rspamd.com/apt-stable/ bookworm main
- dist: bookworm
- key_url: https://rspamd.com/apt-stable/gpg.key
- file: /etc/apt/sources.list.d/rspamd.list
rspamd:
pkg.installed:
- name: rspamd
2023-12-06 16:03:52 +00:00
- fromrepo: bookworm
2023-09-06 14:24:35 +01:00
redis_server:
pkg.installed:
- name: redis-server
rspamd_conf:
file.recurse:
- name: /etc/rspamd/local.d
- dir_mode: '0755'
- file_mode: '0644'
- source: salt://email/rspamd/local.d
rspamd_service:
service.running:
- name: rspamd
- enable: true
- watch:
- pkg: rspamd
- file: /etc/rspamd/local.d
2023-09-06 14:24:35 +01:00
redis_service:
service.running:
- name: redis-server
- enable: true
- watch:
- pkg: redis-server