updated postfix state
This commit is contained in:
parent
e75d6efbf9
commit
3f63069424
@ -28,18 +28,18 @@ postfix-master-cf:
|
||||
- watch_in:
|
||||
- service: postfix-service
|
||||
|
||||
{%- for key, value in postfix.config.pgsql.items() %}
|
||||
{%- for key, value in postfix.config.pgsql.files.items() %}
|
||||
postfix-pgsql-{{ key }}:
|
||||
file.managed:
|
||||
- name: {{ postfix.base_dir }}/pgsql/{{ key }}.cf
|
||||
- source: salt://postfix/templates/plain.cf.j2
|
||||
- source: salt://postfix/templates/pgsql.cf.j2
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- context:
|
||||
value: |
|
||||
{{ value|indent(8) }}
|
||||
config: {{ postfix.config.pgsql.config }}
|
||||
query: {{ value.query }}
|
||||
- watch_in:
|
||||
- service: postfix-service
|
||||
{% 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