example42/puppet-perl — pull request #13 by BackSlasher (2014-08-25 11:17:38+00:00)
Title: Added "HOME" env variable to cpan

cpan binary requires HOME variable, which under some conditions isn't provided by puppet's environment (e.g. vagrant's puppet standalone provider)
Assuming user is always root, set to `/root`

I tested more thoroughly