2018-10-19 20:14:08 +00:00
|
|
|
{% set postfix_version = salt['pillar.get']('postfix:version', '>=3.3.1-r1') %}
|
2018-11-02 11:21:55 +00:00
|
|
|
{% set postfix_use = salt['pillar.get']('postfix:use',
|
|
|
|
['hardened', 'berkdb', '-dovecot-sasl', '-memcached', '-mysql']) %}
|
2018-10-19 20:14:08 +00:00
|
|
|
#['berkdb', 'dovecot-sasl', 'hardened', 'memcached', 'mysql', 'pam', 'ssl']
|
|
|
|
{% set postfix_packaged = salt['pillar.get']('postfix:packaged', False) %}
|
|
|
|
|
|
|
|
mail-mta/postfix:
|
|
|
|
pkg.installed:
|
|
|
|
- version: "{{ postfix_version }}[{{ ','.join(postfix_use) }}]"
|
|
|
|
{% if postfix_packaged %}
|
|
|
|
- binhost: force
|
|
|
|
{% endif %}
|