updated postfix state
This commit is contained in:
parent
bd3fa82ffa
commit
efacdce925
@ -1,11 +1,5 @@
|
|||||||
---
|
---
|
||||||
{%- from "postfix/map.jinja" import postfix with context %}
|
{%- from "postfix/map.jinja" import postfix with context %}
|
||||||
postfix-pgsql-dir:
|
|
||||||
file.directory:
|
|
||||||
- name: {{ postfix.base_dir }}/pgsql
|
|
||||||
- user: root
|
|
||||||
- group: root
|
|
||||||
|
|
||||||
postfix-main-cf:
|
postfix-main-cf:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ postfix.base_dir }}/main.cf
|
- name: {{ postfix.base_dir }}/main.cf
|
||||||
@ -28,6 +22,13 @@ postfix-master-cf:
|
|||||||
- watch_in:
|
- watch_in:
|
||||||
- service: postfix-service
|
- service: postfix-service
|
||||||
|
|
||||||
|
{%- if postfix.db == 'pgsql' %}
|
||||||
|
postfix-pgsql-dir:
|
||||||
|
file.directory:
|
||||||
|
- name: {{ postfix.base_dir }}/pgsql
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
|
||||||
{%- for key, value in postfix.config.pgsql.files.items() %}
|
{%- for key, value in postfix.config.pgsql.files.items() %}
|
||||||
postfix-pgsql-{{ key }}:
|
postfix-pgsql-{{ key }}:
|
||||||
file.managed:
|
file.managed:
|
||||||
@ -43,3 +44,4 @@ postfix-pgsql-{{ key }}:
|
|||||||
- watch_in:
|
- watch_in:
|
||||||
- service: postfix-service
|
- service: postfix-service
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
@ -4,6 +4,7 @@ postfix:
|
|||||||
base_dir: '/etc/postfix'
|
base_dir: '/etc/postfix'
|
||||||
pkgs:
|
pkgs:
|
||||||
- postfix
|
- postfix
|
||||||
|
db: None
|
||||||
config:
|
config:
|
||||||
main:
|
main:
|
||||||
alias_database: 'hash:/etc/aliases'
|
alias_database: 'hash:/etc/aliases'
|
||||||
|
Loading…
Reference in New Issue
Block a user