On Aug 7, 12:50 am, David Schmitt <da...@dasz.at> wrote:
> cnjohnson wrote:
> > I am running puppet-0.24.8 with passenger-2.2.2, apache-2.2.3 on RHEL
> > 5.2. I have two nodes, one x86_64 and one ppc64, that have the client
> > running and they are checking in regularly as expected. I have a
> > minimal site.pp file which defines the owner, group and permissions on
> > several files. Changes to those files on the two client nodes are
> > reverted according to the site.pp file as expected.
>
> > I have a question about logging, though. Puppet now logs through /var/
> > log/messages. This is fine, but not my first choice. Is this being
> > handled by apache? Do I need to add an entry in the virtual host
> > section of httpd.conf; or is this being handled by rack? I would
> > prefer that the logging be done in /var/puppet/log/masterhttp.log
>
> > Any suggestions would be appreciated.
>
> Take a look at the configuration reference at [1], especially the
> httplog, logdir, rails_loglevel. railslog, report*, and syslogfacility.
>
> See [2] for details on reporting.
>
> Regards, DavidS
>
> [1]http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference
> [2]http://reductivelabs.com/trac/puppet/wiki/ReportReference

Thank you for the reply. Unfortunately, I still cannot change where
puppetmasterd logs when used as a rack app. The cofig.ru file has the
following lines:

# startup code stolen from bin/puppetmasterd
Puppet.parse_config
Puppet::Util::Log.level = :info
Puppet::Util::Log.newdestination(:syslog)

Commenting out the last two lines has the effect of stopping logging
altogether even though logdir and httplog are specified in /etc/puppet/
puppet.conf

Doing the following causes the clients to report: Could not call
puppetmaster.getconfig: #<RuntimeError: HTTP-Error: 500 Internal
Server Error>

mylog = File.new("/var/puppet/log/myhttp.log", "a+")
Puppet::Util::Log.newdestination(mylog)

I am clearly missing something. Any further clues would be
appreciated.

Cheers--

Charles
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to