updated postfix state

This commit is contained in:
Paul 2020-07-19 14:45:46 +02:00
parent e75d6efbf9
commit 3f63069424
3 changed files with 9 additions and 5 deletions

View File

@ -28,18 +28,18 @@ postfix-master-cf:
- watch_in: - watch_in:
- service: postfix-service - service: postfix-service
{%- for key, value in postfix.config.pgsql.items() %} {%- for key, value in postfix.config.pgsql.files.items() %}
postfix-pgsql-{{ key }}: postfix-pgsql-{{ key }}:
file.managed: file.managed:
- name: {{ postfix.base_dir }}/pgsql/{{ key }}.cf - name: {{ postfix.base_dir }}/pgsql/{{ key }}.cf
- source: salt://postfix/templates/plain.cf.j2 - source: salt://postfix/templates/pgsql.cf.j2
- user: root - user: root
- group: root - group: root
- mode: 644 - mode: 644
- template: jinja - template: jinja
- context: - context:
value: | config: {{ postfix.config.pgsql.config }}
{{ value|indent(8) }} query: {{ value.query }}
- watch_in: - watch_in:
- service: postfix-service - service: postfix-service
{% endfor %} {% endfor %}

View File

@ -0,0 +1,5 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{% for k, v in config.items() -%}
{{ k }} = {{ v }}
{% endfor -%}
query = {{ query }}

View File

@ -1 +0,0 @@
{{ value }}