paulbsd-salt/states/opendkim/config.sls
Paul Lecuq 8ca47b2f12
Some checks failed
continuous-integration/drone/push Build is failing
updated opendkim state
2023-01-04 21:44:50 +01:00

53 lines
1.5 KiB
Plaintext

---
{%- from "opendkim/map.jinja" import opendkim with context %}
opendkim-config-dir:
file.directory:
- name: {{ opendkim.config.dir }}
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 755
opendkim-configuration-key:
file.managed:
- name: {{ opendkim.config.dir }}/{{ opendkim.config.key.name }}
- source: salt://opendkim/templates/key.j2
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 600
- template: jinja
- watch_in:
- service: opendkim-service
opendkim-trusted-hosts:
file.managed:
- name: {{ opendkim.config.dir }}/TrustedHosts
- source: salt://opendkim/templates/TrustedHosts.j2
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 644
- template: jinja
- watch_in:
- service: opendkim-service
opendkim-service-defaults:
file.managed:
- name: {{ opendkim.config.default_file }}
- source: salt://opendkim/templates/service_defaults.j2
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 644
- template: jinja
- watch_in:
- service: opendkim-service
opendkim-config-file:
file.managed:
- name: {{ opendkim.config.file }}
- source: salt://opendkim/templates/opendkim.conf.j2
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 644
- template: jinja
- watch_in:
- service: opendkim-service