separate postgrey into a separate module
This commit is contained in:
parent
0e3d0778bd
commit
1792b58851
@ -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'],
|
||||
'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