]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
figure out if we need a smarthost
[dsa-puppet.git] / modules / puppetmaster / lib / puppet / parser / functions / nodeinfo.rb
index 74dcd892bee630cf4a156a2fc2c569746266a548..ec26415738b2755f76bead11a047d8878559a360 100644 (file)
@@ -15,6 +15,12 @@ module Puppet::Parser::Functions
       nodeinfo['hoster'] = function_whohosts(nodeinfo['ldap']['ipHostNumber'], "/etc/puppet/modules/debian-org/misc/hoster.yaml")
       nodeinfo['buildd'] = nodeinfo['ldap']['purpose'].include?('buildd')
 
+      if lookupvar('::mta') == 'exim4'
+        unless nodeinfo['heavy_exim']
+          nodeinfo['smarthost'] = true
+        end
+      end
+
       nodeinfo['misc'] = {}
       fqdn = lookupvar('::fqdn')
       if fqdn and fqdn == host