paulbsd-salt/states/opendkim/config.sls
Paul Lecuq 813f71d99d
Some checks failed
continuous-integration/drone/push Build is failing
updated opendkim state
2023-01-04 21:54:52 +01:00

53 lines
1.4 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/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/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/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/opendkim.conf.j2
- user: {{ opendkim.config.user }}
- group: {{ opendkim.config.group }}
- mode: 644
- template: jinja
- watch_in:
- service: opendkim-service