projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add heavy_postfix setting in local.yaml, and set smarthosts for not-heavy-postfix...
[mirror/dsa-puppet.git]
/
modules
/
puppetmaster
/
lib
/
puppet
/
parser
/
functions
/
nodeinfo.rb
diff --git
a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
index
6df9301
..
4927002
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
@@
-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'] = {}