2015-02-26 16:19:08 +01:00
|
|
|
{% set postfix = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
2015-08-22 12:15:36 +02:00
|
|
|
'packages': ['postfix'],
|
2015-07-11 11:31:11 +02:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-02-26 16:19:08 +01:00
|
|
|
'service': 'postfix',
|
2015-08-22 12:14:21 +02:00
|
|
|
'aliases': '/etc/aliases',
|
2015-02-26 16:19:08 +01:00
|
|
|
},
|
|
|
|
'Gentoo': {
|
|
|
|
'packages': ['mail-mta/postfix'],
|
2015-07-11 11:31:11 +02:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-02-26 16:19:08 +01:00
|
|
|
'service': 'postfix',
|
2015-08-22 12:14:21 +02:00
|
|
|
'aliases': '/etc/mail/aliases',
|
2015-02-26 16:19:08 +01:00
|
|
|
},
|
2015-03-13 13:26:27 +01:00
|
|
|
'RedHat': {
|
|
|
|
'packages': ['postfix'],
|
2015-07-11 11:31:11 +02:00
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-03-13 13:26:27 +01:00
|
|
|
'service': 'postfix',
|
2015-08-22 12:14:21 +02:00
|
|
|
'aliases': '/etc/aliases',
|
2015-03-13 13:26:27 +01:00
|
|
|
},
|
2015-05-03 03:01:09 +02:00
|
|
|
'Arch' : {
|
2015-07-11 11:31:11 +02:00
|
|
|
'packages': ['postfix'],
|
|
|
|
'postgrey_pkg': 'postgrey',
|
2015-05-03 03:01:09 +02:00
|
|
|
'service': 'postfix',
|
2015-08-22 12:14:21 +02:00
|
|
|
'aliases': '/etc/aliases',
|
2015-05-03 03:01:09 +02:00
|
|
|
},
|
2015-02-26 16:19:08 +01:00
|
|
|
}, merge=salt['pillar.get']('postfix:lookup')) %}
|