Merge pull request #20 from imran1008/postgrey
Add postgrey to list of packages to be installed in Arch
This commit is contained in:
commit
0b71459df3
@ -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
15
postfix/postgrey.sls
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user