Just make a call to Lookup as described in "Callin...
# puppet
c
Just make a call to Lookup as described in "Calling other functions": https://help.puppet.com/core/current/Content/PuppetCore/functions_ruby_implementation.htm