updated postfix state
This commit is contained in:
parent
0701722f5e
commit
c66b9ecf0a
@ -17,17 +17,6 @@ postfix-main-cf:
|
||||
- watch_in:
|
||||
- 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:
|
||||
file.managed:
|
||||
- name: {{ postfix.base_dir }}/master.cf
|
||||
@ -37,4 +26,18 @@ postfix-master-cf:
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- 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 %}
|
@ -45,4 +45,5 @@ postfix:
|
||||
compatibility_level: 2
|
||||
master: {}
|
||||
sender_access: {}
|
||||
transport: {}
|
||||
transport: {}
|
||||
pgsql: {}
|
0
states/postfix/templates/plain.j2
Normal file
0
states/postfix/templates/plain.j2
Normal file
Loading…
Reference in New Issue
Block a user