2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- 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 }}
|
2023-01-04 21:44:03 +01:00
|
|
|
- source: salt://opendkim/templates/key.j2
|
2020-07-10 00:58:55 +02:00
|
|
|
- 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
|
2023-01-04 21:44:03 +01:00
|
|
|
- source: salt://opendkim/templates/TrustedHosts.j2
|
2020-07-10 00:58:55 +02:00
|
|
|
- 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 }}
|
2023-01-04 21:44:03 +01:00
|
|
|
- source: salt://opendkim/templates/service_defaults.j2
|
2020-07-10 00:58:55 +02:00
|
|
|
- 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 }}
|
2023-01-04 21:44:03 +01:00
|
|
|
- source: salt://opendkim/templates/opendkim.conf.j2
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: {{ opendkim.config.user }}
|
|
|
|
- group: {{ opendkim.config.group }}
|
|
|
|
- mode: 644
|
|
|
|
- template: jinja
|
|
|
|
- watch_in:
|
2021-08-19 21:15:24 +02:00
|
|
|
- service: opendkim-service
|