]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Adding postfix/map.jinja
authorFrank Brehm <frank@brehm-online.com>
Thu, 25 Feb 2016 22:22:08 +0000 (23:22 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 25 Feb 2016 22:22:08 +0000 (23:22 +0100)
postfix/map.jinja [new file with mode: 0644]

diff --git a/postfix/map.jinja b/postfix/map.jinja
new file mode 100644 (file)
index 0000000..49bf76a
--- /dev/null
@@ -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')) %}