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
|
||||
@ -38,3 +27,17 @@ postfix-master-cf:
|
||||
- template: jinja
|
||||
- watch_in:
|
||||
- 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 %}
|
@ -46,3 +46,4 @@ postfix:
|
||||
master: {}
|
||||
sender_access: {}
|
||||
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