## code in /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb
module Puppet::Parser::Functions
newfunction(:extlookup, :type => :rvalue) do |args|
fqdn = lookupvar("fqdn")
Puppet.notice("Running extlookup function for #{fqdn}")
end
end
## master logs
17:56:04 puppet1> puppetmasterd[12606]: Running extlookup function for nephilim.ml.org