Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# return the ipaddress fact for a given alias interface module Puppet::Parser::Functions newfunction(:interface_alias, :type => :rvalue) do |args| interface_alias = args[0].gsub(':', '_') address = lookupvar('ipaddress_#{interface_alias}') address end end
This paste will be private.
From the Design Piracy series on my blog: