Folks, I don''t understand why HOME needs to be set for loading ''puppet'' from ruby. I have a lib that does a require of the puppet lib (from inside Rails), but borks because it can''t expand ~/.puppet. Seems to me that the right behavior is if HOME doesn''t exist, don''t try to load ~/.puppet. Yes, I realize you can set a home dir for the user running the web server process, etc. There might be times that it''s desirable for the home directory to not exist. I mean, your user for running the webserver is a ''role'' usually, not a real user. Why should it have a home dir? So, I''m working around this now. Not a big deal. Just wondering what other people think? Does HOME need to be a hard requirement for loading a library? I haven''t see this in other libs. Generally I would like my libs to be independent of the OS configuration as much as possible. Thanks, --Randy Randy Bias, chief tactician, neoTactics, Inc. (877) NEO-TKTX, randyb@neotactics.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Sep 5, 2007, at 3:48 AM, Randy Bias wrote:> I don''t understand why HOME needs to be set for loading ''puppet'' > from ruby. I have a lib that does a require of the puppet lib > (from inside Rails), but borks because it can''t expand ~/.puppet. > Seems to me that the right behavior is if HOME doesn''t exist, don''t > try to load ~/.puppet. Yes, I realize you can set a home dir for > the user running the web server process, etc. There might be times > that it''s desirable for the home directory to not exist. I mean, > your user for running the webserver is a ''role'' usually, not a real > user. Why should it have a home dir? > > So, I''m working around this now. Not a big deal. Just wondering > what other people think? Does HOME need to be a hard requirement > for loading a library? I haven''t see this in other libs. > Generally I would like my libs to be independent of the OS > configuration as much as possible.It''s not so much that HOME Is a requirement as that Puppet needs a directory for configuration and var stuff, and it defaults to ~ for non-root, non-puppet users. You can reset vardir and confdir to work around this, of course. -- Don''t hit at all if it is honorably possible to avoid hitting; but never hit soft! -- Theodore Roosevelt --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com