Hi, Require to execute some puppet commands on puppet server i.e master node eg: puppet resource user or puppet cert clean pclient. While trying to execute these commands through generate() I am continuously getting error i.e Error: Could not initialize global default settings: couldn't find HOME environment -- expanding `~/.puppet', I think the error appears as Puppet cannot find its home directory because ruby doesn't have a pure bash shell with is required to expand the tilde. The solution I found is to modify run_mod.rb class UnixRunMode < RunMode def conf_dir which_dir("/etc/puppet", "~/.puppet") # which_dir("/etc/puppet", "#{Etc.getpwuid.dir}/.puppet") end def var_dir which_dir("/var/lib/puppet", "~/.puppet/var") #which_dir("/var/lib/puppet", "#{Etc.getpwuid.dir}/.puppet/var") end end This will solve the problem but I don't want to do any changes with the library files.So, my query is: Is there any way to set the home environment through puppet configuration file or can we set the HOME environment at the run time of the generate() method or before running the generate. Thanks Shashank -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f33998ae-5a34-473d-8532-7676401ea90f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.