Derek Cole
2013-Nov-01 22:01 UTC
[Puppet Users] How to determine puppet environment when using passenger
Hello, I am trying to figure out what the best way to use puppet when I am using passenger. I noticed that if I log in as my normal user on Ubuntu 12.04, and run "puppet config print" it gives me the incorrect configuration than what I think I am running when I am using apache/passenger/puppet For example, it shows my confdir as being in my users homedir/.puppet instead of /etc/puppet When i log in as root, and run the command, everything looks correct. Am I just supposed to work in root all the time when I am running puppet''s commands? I noticed this is also a problem when I am having a custom modulepath..if I run puppet install module as a user, it puts it in my home dir, instead of in the configured modulepath i have in my puppet.conf Please advise - Thanks! -- 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/589c9a47-3318-46ee-94e4-85c286fec780%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Jason Antman
2013-Nov-02 02:24 UTC
Re: [Puppet Users] How to determine puppet environment when using passenger
Derek, In most circumstances, yes, you should be running puppet commands as root (via sudo). Running via sudo seems to be the standard, and the best practice, in Linux environments. You could use some other methods if you have a... unusual... environment, but running puppet commands as a normal user will both look in the user''s home directory by default, and won''t be able to do most things that puppet normally does, as it will need root privileges to do things like installing packages and altering system-wide configuration files. It''s been a while since I''ve looked, but the puppet documentation (http://docs.puppetlabs.com/puppet/) should cover this. -jantman On 11/01/2013 06:01 PM, Derek Cole wrote:> Hello, > I am trying to figure out what the best way to use puppet when I am > using passenger. I noticed that if I log in as my normal user on > Ubuntu 12.04, and run "puppet config print" it gives me the incorrect > configuration than what I think I am running when I am using > apache/passenger/puppet > > For example, it shows my confdir as being in my users homedir/.puppet > instead of /etc/puppet > > When i log in as root, and run the command, everything looks correct. > Am I just supposed to work in root all the time when I am running > puppet''s commands? I noticed this is also a problem when I am having a > custom modulepath..if I run puppet install module as a user, it puts > it in my home dir, instead of in the configured modulepath i have in > my puppet.conf > > Please advise - > > Thanks! > -- > 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/589c9a47-3318-46ee-94e4-85c286fec780%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- 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/5274625F.5060007%40jasonantman.com. For more options, visit https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- Puppet / Passenger SSL Problems with DRBD
- puppet master REST API returns 403 when running under passenger works when running from command line
- Compile catalog against tagged version of a git repo?
- passenger starts old pupper
- yet another class dependency question.