From: Frank Brehm Date: Thu, 25 Feb 2016 22:22:08 +0000 (+0100) Subject: Adding postfix/map.jinja X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=a534eb4b5115bcdfac28d8976c1952d50365f3f7;p=salt%2Fstates.git Adding postfix/map.jinja --- diff --git a/postfix/map.jinja b/postfix/map.jinja new file mode 100644 index 0000000..49bf76a --- /dev/null +++ b/postfix/map.jinja @@ -0,0 +1,30 @@ +{% set postfix = salt['grains.filter_by']({ + 'Debian': { + 'package': 'postfix', + 'policyd_spf_pkg': 'postfix-policyd-spf-python', + 'postgrey_pkg': 'postgrey', + 'service': 'postfix', + 'aliases_file': '/etc/aliases', + }, + 'Gentoo': { + 'package': 'mail-mta/postfix', + 'policyd_spf_pkg': 'mail-filter/pypolicyd-spf', + 'postgrey_pkg': 'mail-filter/postgrey', + 'service': 'postfix', + 'aliases_file': '/etc/mail/aliases', + }, + 'RedHat': { + 'package': 'postfix', + 'policyd_spf_pkg': 'pypolicyd-spf', + 'postgrey_pkg': 'postgrey', + 'service': 'postfix', + 'aliases_file': '/etc/aliases', + }, + 'Arch' : { + 'package': 'postfix', + 'policyd_spf_pkg': 'python-postfix-policyd-spf', + 'postgrey_pkg': 'postgrey', + 'service': 'postfix', + 'aliases_file': '/etc/aliases', + }, +}, merge=salt['pillar.get']('postfix:lookup')) %}