Several useful functions for Puppet