2015-02-26 10:19:08 -05:00
|
|
|
{% set postfix = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
2015-08-22 06:46:35 -04:00
|
|
|
'package': 'postfix',
|
2015-08-22 07:59:29 -04:00
|
|
|
'policyd_spf_pkg': 'postfix-policyd-spf-python',
|
2015-07-11 05:31:11 -04:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-02-26 10:19:08 -05:00
|
|
|
'service': 'postfix',
|
2015-08-27 10:11:22 -04:00
|
|
|
'aliases_file': '/etc/aliases',
|
2015-02-26 10:19:08 -05:00
|
|
|
},
|
|
|
|
'Gentoo': {
|
2015-08-22 06:46:35 -04:00
|
|
|
'package': 'mail-mta/postfix',
|
2015-08-22 07:59:29 -04:00
|
|
|
'policyd_spf_pkg': 'mail-filter/pypolicyd-spf',
|
2015-08-22 06:40:09 -04:00
|
|
|
'postgrey_pkg': 'mail-filter/postgrey',
|
2015-02-26 10:19:08 -05:00
|
|
|
'service': 'postfix',
|
2015-08-27 10:11:22 -04:00
|
|
|
'aliases_file': '/etc/mail/aliases',
|
2015-02-26 10:19:08 -05:00
|
|
|
},
|
2015-03-13 08:26:27 -04:00
|
|
|
'RedHat': {
|
2015-08-22 06:46:35 -04:00
|
|
|
'package': 'postfix',
|
2015-08-22 07:59:29 -04:00
|
|
|
'policyd_spf_pkg': 'pypolicyd-spf',
|
2015-07-11 05:31:11 -04:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-03-13 08:26:27 -04:00
|
|
|
'service': 'postfix',
|
2015-08-27 10:11:22 -04:00
|
|
|
'aliases_file': '/etc/aliases',
|
2015-03-13 08:26:27 -04:00
|
|
|
},
|
2015-05-02 21:01:09 -04:00
|
|
|
'Arch' : {
|
2015-08-22 06:46:35 -04:00
|
|
|
'package': 'postfix',
|
2015-08-22 07:59:29 -04:00
|
|
|
'policyd_spf_pkg': 'python-postfix-policyd-spf',
|
2015-07-11 05:31:11 -04:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-05-02 21:01:09 -04:00
|
|
|
'service': 'postfix',
|
2015-08-27 10:11:22 -04:00
|
|
|
'aliases_file': '/etc/aliases',
|
2015-05-02 21:01:09 -04:00
|
|
|
},
|
2015-02-26 10:19:08 -05:00
|
|
|
}, merge=salt['pillar.get']('postfix:lookup')) %}
|