Hi every one, I have a strange behavior with my puppet agent on CentOS 5.7. The agent does not write into the log file when it runs as a daemon. Nevertheless, It does when it is run manually by "puppet agent -t". And the behavior is the same even if I specify explicitly the log file on the command line like : /usr/bin/puppet agent --logdest=/var/log/syslog Here is my puppet.conf ----------------------------------- [main] vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true server=puppetmaster01.back.adencf.local #server=puppetmaster02.int.adencf.local [agent] environment=development #listen = true # Issue on CentOS 5.7 confirmed by a bugreport on PuppetLabs report = true In /etc/sysconfig/puppet ----------------------------------- # Defaults for puppet - sourced by /etc/init.d/puppet # Start puppet on boot? START=yes # Pull puppetmaster periodicaly PUPPET_EXTRA_OPTS="" PUPPET_LOG="/var/log/syslog" PUPPETD="/usr/bin/puppet agent" PUPPET_LOG="/var/log/syslog" Have any one of you an idea about that ? Thanks a lot ! -- Xakraz -- 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.
Kelsey Hightower
2012-Feb-10 14:36 UTC
[Puppet Users] Re: puppet 2.6.13-2.el5 not writing logs
On Feb 10, 7:52 am, Sam F <xak...@gmail.com> wrote:> Hi every one, > > I have a strange behavior with my puppet agent on CentOS 5.7. > > The agent does not write into the log file when it runs as a daemon. > Nevertheless, It does when it is run manually by "puppet agent -t". > > And the behavior is the same even if I specify explicitly the log file > on the command line like : > > /usr/bin/puppet agent --logdest=/var/log/syslog > > Here is my puppet.conf > ----------------------------------- > [main] > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > pluginsync=true > server=puppetmaster01.back.adencf.local > #server=puppetmaster02.int.adencf.local > > [agent] > environment=development > #listen = true # Issue on CentOS 5.7 confirmed by a bugreport on > PuppetLabs > report = true > > In /etc/sysconfig/puppet > ----------------------------------- > # Defaults for puppet - sourced by /etc/init.d/puppet > # Start puppet on boot? > START=yes > > # Pull puppetmaster periodicaly > PUPPET_EXTRA_OPTS="" > PUPPET_LOG="/var/log/syslog" > PUPPETD="/usr/bin/puppet agent" > > PUPPET_LOG="/var/log/syslog" > > Have any one of you an idea about that ?Can you try and set autoflush to true? http://docs.puppetlabs.com/references/2.7.9/configuration.html#autoflush -- 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.