Fix puppet 3.2.1 deprecation warnings

This commit fixes the Puppet 3.2.1 deprecation compatibility warnings.