Puppet custom functions