updated postfix state

This commit is contained in:
Paul 2020-07-19 14:18:16 +02:00
parent 0701722f5e
commit c66b9ecf0a
3 changed files with 17 additions and 13 deletions

View File

@ -17,17 +17,6 @@ postfix-main-cf:
- watch_in: - watch_in:
- service: postfix-service - service: postfix-service
postfix-main-cf:
file.managed:
- name: {{ postfix.base_dir }}/main.cf
- source: salt://postfix/templates/main.cf.j2
- user: root
- group: root
- mode: 644
- template: jinja
- watch_in:
- service: postfix-service
postfix-master-cf: postfix-master-cf:
file.managed: file.managed:
- name: {{ postfix.base_dir }}/master.cf - name: {{ postfix.base_dir }}/master.cf
@ -37,4 +26,18 @@ postfix-master-cf:
- mode: 644 - mode: 644
- template: jinja - template: jinja
- watch_in: - watch_in:
- service: postfix-service - service: postfix-service
{%- for key, value in postfix.config.pgsql.items() %}
postfix-pgsql-{{ key }}:
file.managed:
- name: {{ postfix.base_dir }}/pgsql/{{ key }}.cf
- source: salt://postfix/templates/plain.cf.j2
- user: root
- group: root
- mode: 644
- template: jinja
- context: {{ value }}
- watch_in:
- service: postfix-service
{% endfor %}

View File

@ -45,4 +45,5 @@ postfix:
compatibility_level: 2 compatibility_level: 2
master: {} master: {}
sender_access: {} sender_access: {}
transport: {} transport: {}
pgsql: {}

View File