add heavy_postfix setting in local.yaml, and set smarthosts for not-heavy-postfix...
authorPeter Palfrader <peter@palfrader.org>
Wed, 30 Aug 2017 07:39:20 +0000 (07:39 +0000)
committerPeter Palfrader <peter@palfrader.org>
Wed, 30 Aug 2017 07:39:20 +0000 (07:39 +0000)
modules/debian_org/files/misc/local.yaml
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb

index 3812700..5bf143a 100644 (file)
@@ -120,6 +120,8 @@ footer:
   #zandonai.debian.org: "Debian s390 buildd system kindly provided by Zentrum fuer Informationsverarbeitung und Informationstechnik [zivit]"
   #zelenka.debian.org: "Debian s390 porter system kindly provided by Zentrum fuer Informationsverarbeitung und Informationstechnik [zivit]"
 host_settings:
+  heavy_postfix:
+    - bendel.debian.org
   heavy_exim:
     # mail front-ends
     - mailly.debian.org
index 6df9301..4927002 100644 (file)
@@ -17,6 +17,10 @@ module Puppet::Parser::Functions
         unless nodeinfo['heavy_exim']
           nodeinfo['smarthost'] = 'mailout.debian.org'
         end
+      elsif lookupvar('::mta') == 'postfix'
+        unless nodeinfo['heavy_postfix']
+          nodeinfo['smarthost'] = 'mailout.debian.org'
+        end
       end
 
       nodeinfo['misc'] = {}