Merge pull request #20 from imran1008/postgrey

Add postgrey to list of packages to be installed in Arch
This commit is contained in:
Nitin Madhok 2015-08-09 08:04:07 -04:00
commit 0b71459df3
2 changed files with 19 additions and 0 deletions

View File

@ -1,18 +1,22 @@
{% set postfix = salt['grains.filter_by']({
'Debian': {
'packages': ['postfix', 'postfix-policyd-spf-python'],
'postgrey_pkg': 'postgrey',
'service': 'postfix',
},
'Gentoo': {
'packages': ['mail-mta/postfix'],
'postgrey_pkg': 'postgrey',
'service': 'postfix',
},
'RedHat': {
'packages': ['postfix'],
'postgrey_pkg': 'postgrey',
'service': 'postfix',
},
'Arch' : {
'packages': ['postfix'],
'postgrey_pkg': 'postgrey',
'service': 'postfix',
},
}, merge=salt['pillar.get']('postfix:lookup')) %}

15
postfix/postgrey.sls Normal file
View File

@ -0,0 +1,15 @@
{% from "postfix/map.jinja" import postfix with context %}
postgrey:
pkg.installed:
- name: {{ postfix.postgrey_pkg }}
- watch_in:
- service: postgrey
service.running:
- enable: True
- require:
- pkg: postgrey
- watch:
- pkg: postgrey