But if you are in a puppet exec, do not forget to pass it using the environment keyword ...
Example:
1 2 3 4 5 6 | exec { "/usr/bin/bundle install --deployment --without development test postgres aws" : cwd => "${homedir}/gitlab" , timeout => 3600 , creates => "${homedir}/gitlab/vendor/bundle" } |