defaults.yaml and osmap.yaml
This commit is contained in:
parent
7fc82e0bd2
commit
f5990cfbfc
5
postfix/defaults.yaml
Normal file
5
postfix/defaults.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
postfix:
|
||||||
|
package: postfix
|
||||||
|
service: postfix
|
||||||
|
aliases_file: /etc/aliases
|
||||||
|
config_dir: /etc/postfix
|
@ -1,36 +1,12 @@
|
|||||||
{% set postfix = salt['grains.filter_by']({
|
{% import_yaml "postfix/defaults.yaml" as defaults %}
|
||||||
'Debian': {
|
{% import_yaml "postfix/osmap.yaml" as osmap %}
|
||||||
'package': 'postfix',
|
|
||||||
'policyd_spf_pkg': 'postfix-policyd-spf-python',
|
{% set postfix = salt['grains.filter_by'](
|
||||||
'postsrsd_pkg': 'postsrsd',
|
defaults,
|
||||||
'postgrey_pkg': 'postgrey',
|
merge=salt['grains.filter_by'](
|
||||||
'pcre_pkg': 'postfix-pcre',
|
osmap,
|
||||||
'mysql_pkg': 'postfix-mysql',
|
grain='os',
|
||||||
'service': 'postfix',
|
merge=salt['pillar.get']('postfix:lookup', {}),
|
||||||
'aliases_file': '/etc/aliases',
|
),
|
||||||
},
|
base='postfix')
|
||||||
'Gentoo': {
|
%}
|
||||||
'package': 'mail-mta/postfix',
|
|
||||||
'policyd_spf_pkg': 'mail-filter/pypolicyd-spf',
|
|
||||||
'postsrsd_pkg': 'mail-filter/postsrsd',
|
|
||||||
'postgrey_pkg': 'mail-filter/postgrey',
|
|
||||||
'service': 'postfix',
|
|
||||||
'aliases_file': '/etc/mail/aliases',
|
|
||||||
},
|
|
||||||
'RedHat': {
|
|
||||||
'package': 'postfix',
|
|
||||||
'policyd_spf_pkg': 'pypolicyd-spf',
|
|
||||||
'postsrsd_pkg': 'postsrsd',
|
|
||||||
'postgrey_pkg': 'postgrey',
|
|
||||||
'service': 'postfix',
|
|
||||||
'aliases_file': '/etc/aliases',
|
|
||||||
},
|
|
||||||
'Arch' : {
|
|
||||||
'package': 'postfix',
|
|
||||||
'policyd_spf_pkg': 'python-postfix-policyd-spf',
|
|
||||||
'postsrsd_pkg': 'postsrsd',
|
|
||||||
'postgrey_pkg': 'postgrey',
|
|
||||||
'service': 'postfix',
|
|
||||||
'aliases_file': '/etc/aliases',
|
|
||||||
},
|
|
||||||
}, merge=salt['pillar.get']('postfix:lookup')) %}
|
|
||||||
|
24
postfix/osmap.yaml
Normal file
24
postfix/osmap.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Debian:
|
||||||
|
policyd_spf_pkg: postfix-policyd-spf-python
|
||||||
|
postsrsd_pkg: postsrsd
|
||||||
|
postgrey_pkg: postgrey
|
||||||
|
pcre_pkg: postfix-pcre
|
||||||
|
mysql_pkg: postfix-mysql
|
||||||
|
|
||||||
|
Gentoo:
|
||||||
|
package: mail-mta/postfix
|
||||||
|
policyd_spf_pkg: mail-filter/pypolicyd-spf
|
||||||
|
postsrsd_pkg: mail-filter/postsrsd
|
||||||
|
postgrey_pkg: mail-filter/postgrey
|
||||||
|
aliases_file: /etc/mail/aliases
|
||||||
|
|
||||||
|
RedHat:
|
||||||
|
policyd_spf_pkg: pypolicyd-spf
|
||||||
|
postsrsd_pkg: postsrsd
|
||||||
|
postgrey_pkg: postgrey
|
||||||
|
|
||||||
|
Arch:
|
||||||
|
policyd_spf_pkg: python-postfix-policyd-spf
|
||||||
|
postsrsd_pkg: postsrsd
|
||||||
|
postgrey_pkg: postgrey
|
||||||
|
|
Loading…
Reference in New Issue
Block a user