paulbsd-salt/states/rspamd/config.sls

14 lines
383 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "rspamd/map.jinja" import rspamd with context %}
{%- for configfile in rspamd.config.files.items() %}
rspamd-config-{{ configfile }}:
file.managed:
- name: {{ rspamd.config.dir }}/{{ configfile }}
- source: salt://rspamd/templates/config.j2
- template: jinja
- user: root
- group: root
- watch_in:
- service: rspamd-service
{%- endfor %}