code in /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb
1
2
3
4
5
6
modulePuppet::Parser::Functionsnewfunction(:extlookup, :type => :rvalue) do |args|
fqdn =lookupvar("fqdn")
Puppet.notice("Running extlookup function for #{fqdn}")
endend
master logs
1
17:56:04 puppet1> puppetmasterd[12606]: Running extlookup function for nephilim.ml.org