Rustler
2010-Aug-14 21:35 UTC
[Puppet Users] PuppetMaster 2.6.0 and Passenger 2.2.15 - Different Directories
I have the puppetmaster deamon running (as root) on a RH5 with it using /etc/puppet for configuration and /var/lib/puppet for it''s other data files (which appear to be the default). Everything is working fine. Installed passenger to run puppetmaster from Apache 2.2 as the user puppet (it won''t run as root). Yes I shut down the deamon, before starting apache. It appears that the passenger/apache configuration using the user puppet wants to use configuration files in /home/puppet/.puppet. It''s own var directory and puppet.conf and fileserver.conf. When I copy the files from /etc/puppet and /var/lib/puppet into the .puppet directory of the user puppet it works using apache. If I then login to the Linux box as the user puppet and execute /usr/ sbin/puppetca --list it is looking in /var/lib/puppet not /home/ puppet/.puppet/var How do you get the command line and passenger puppet/apache to coexist with the same directory structure? Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Brian Wong
2010-Aug-16 19:41 UTC
Re: [Puppet Users] PuppetMaster 2.6.0 and Passenger 2.2.15 - Different Directories
On Sat, Aug 14, 2010 at 5:35 PM, Rustler <coltsixshooter@gmail.com> wrote:> I have the puppetmaster deamon running (as root) on a RH5 with it > using /etc/puppet for configuration and /var/lib/puppet for it''s other > data files (which appear to be the default). Everything is working > fine. > > Installed passenger to run puppetmaster from Apache 2.2 as the user > puppet (it won''t run as root). Yes I shut down the deamon, before > starting apache. > > It appears that the passenger/apache configuration using the user > puppet wants to use configuration files in /home/puppet/.puppet. It''s > own var directory and puppet.conf and fileserver.conf. > > When I copy the files from /etc/puppet and /var/lib/puppet into > the .puppet directory of the user puppet it works using apache. > > If I then login to the Linux box as the user puppet and execute /usr/ > sbin/puppetca --list it is looking in /var/lib/puppet not /home/ > puppet/.puppet/var > > How do you get the command line and passenger puppet/apache to coexist > with the same directory structure?http://projects.puppetlabs.com/issues/4385 I think the above bug is what you are experiencing. Although setting the confdir and vardir explicitly in /etc/puppet/puppet.conf seems to fix the problem, it doesnt explain why the puppet user would even load /etc/puppet/puppet.conf. Look for references to this behavior in the source code, namely reference/configuration.rb. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Rustler
2010-Aug-17 01:08 UTC
[Puppet Users] Re: PuppetMaster 2.6.0 and Passenger 2.2.15 - Different Directories
That bug sounds like my problem, I will try explicitly setting confdir and vardir in /etc/puppet/puppet.conf and see if that helps. On Aug 16, 12:41 pm, Brian Wong <bwl...@gmail.com> wrote:> On Sat, Aug 14, 2010 at 5:35 PM, Rustler <coltsixshoo...@gmail.com> wrote: > > I have the puppetmaster deamon running (as root) on a RH5 with it > > using /etc/puppet for configuration and /var/lib/puppet for it''s other > > data files (which appear to be the default). Everything is working > > fine. > > > Installed passenger to run puppetmaster from Apache 2.2 as the user > > puppet (it won''t run as root). Yes I shut down the deamon, before > > starting apache. > > > It appears that the passenger/apache configuration using the user > > puppet wants to use configuration files in /home/puppet/.puppet. It''s > > own var directory and puppet.conf and fileserver.conf. > > > When I copy the files from /etc/puppet and /var/lib/puppet into > > the .puppet directory of the user puppet it works using apache. > > > If I then login to the Linux box as the user puppet and execute /usr/ > > sbin/puppetca --list it is looking in /var/lib/puppet not /home/ > > puppet/.puppet/var > > > How do you get the command line and passenger puppet/apache to coexist > > with the same directory structure? > > http://projects.puppetlabs.com/issues/4385 > > I think the above bug is what you are experiencing. Although setting > the confdir and vardir explicitly in /etc/puppet/puppet.conf seems to > fix the problem, it doesnt explain why the puppet user would even load > /etc/puppet/puppet.conf. Look for references to this behavior in the > source code, namely reference/configuration.rb.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.