From a534eb4b5115bcdfac28d8976c1952d50365f3f7 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Feb 2016 23:22:08 +0100 Subject: [PATCH] Adding postfix/map.jinja --- postfix/map.jinja | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 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')) %} -- 2.39.5