# Is there a way to override Puppet's removing LOGNAME?

I have an RPM that is being installed with 'package' that does a check to see of the value of LOGNAME is 'root'. But, because Puppet is erasing that variable:

        Puppet::Util::POSIX::USER_ENV_VARS.each { |name| ENV.delete(name) }


I end up with the installation failing with:

2015-05-12 23:06:07 - Error: Script cannot be run as user: ""
2015-05-12 23:06:07 -