updated postfix state
This commit is contained in:
parent
e75d6efbf9
commit
3f63069424
@ -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 %}
|
||||||
|
5
states/postfix/templates/pgsql.cf.j2
Normal file
5
states/postfix/templates/pgsql.cf.j2
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||||||
|
{% for k, v in config.items() -%}
|
||||||
|
{{ k }} = {{ v }}
|
||||||
|
{% endfor -%}
|
||||||
|
query = {{ query }}
|
@ -1 +0,0 @@
|
|||||||
{{ value }}
|
|
Loading…
Reference in New Issue
Block a user