puppetlabs/puppet — pull request #418 by cprice-puppet (2012-01-27 22:50:14+00:00)
Title: (#5224) Unset USER-related env vars during execs

This bug report was related to the fact that you may end up with very different values for environment variables such as "HOME", "USER", "LOGNAME" depending on how you start puppet (at boot time, via "service", via /etc/init.d, etc.). These variations can have an effect on the behavior of programs / services that are launched by puppet, particularly those that are triggered via Exec resources. Change the behavior such that these environment variables are simply unset by puppet prior to executing commands.