Hi,
I''m running puppet 2.7.12 on CentOS 5.8. I''m having trouble
getting the
puppet master to log to a file. The same configuration is working fine
for the puppet agent. A single line is written to the master''s log file
when it starts. When logging to syslog or the console, I get lots of
output each time an agent talks to the master. When logging to a file, I
get nothing. The master does not even appear to have the log file open.
Below is my configuration and some shell output demonstrating the
problem. Does this configuration work for others, or have I run into a bug?
$ egrep -v ''#|^$'' puppet.conf
[main]
vardir = /var/lib/puppet
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
pluginsync = true
factpath = $vardir/lib/facter
autoflush = true
[agent]
server = redacted
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
listen = false
[master]
modulepath = redacted
storeconfigs = true
dbadapter = sqlite3
dblocation = $vardir/storeconfigs.sqlite
certname = redacted
$ egrep -v ''#|^$'' /etc/sysconfig/puppet
PUPPET_LOG=/var/log/puppet/agent.log
PUPPET_EXTRA_OPTS=--verbose
$ egrep -v ''#|^$'' /etc/sysconfig/puppetmaster
PUPPETMASTER_LOG=/var/log/puppet/master.log
PUPPETMASTER_EXTRA_OPTS=--verbose
$ ps -wwfp $(pgrep -fd, puppet)
UID PID PPID C STIME TTY TIME CMD
root 12566 1 6 18:33 ? 00:00:53 /usr/bin/ruby
/usr/sbin/puppetd --logdest=/var/log/puppet/agent.log --verbose
puppet 15612 1 5 18:43 ? 00:00:15 /usr/bin/ruby
/usr/sbin/puppetmasterd --logdest /var/log/puppet/master.log --verbose
$ sudo pkill -SIGUSR1 puppetd
$ sudo ls -lt /var/log/puppet/
total 25136
-rw-rw---- 1 puppet puppet 25661723 Apr 6 18:51 masterhttp.log
-rw-r--r-- 1 root root 21638 Apr 6 18:51 agent.log
-rw------- 1 puppet puppet 3889 Apr 6 18:44 rails.log
-rw-r--r-- 1 root root 68 Apr 6 18:43 master.log
-rw-r----- 1 root root 4850 Apr 4 17:02 http.log
$ sudo cat /var/log/puppet/master.log
Fri Apr 06 18:43:43 -0400 2012 Puppet (notice): Reopening log files
$ sudo tail -n 1 /var/log/puppet/agent.log
Fri Apr 06 18:51:47 -0400 2012 Puppet (notice): Finished catalog run in
11.73 seconds
$ sudo fuser -s /var/log/puppet/agent.log; echo $?
0
$ sudo fuser -s /var/log/puppet/master.log; echo $?
1
--
Brian Pitts
Systems Administrator | EuPathDB Bioinformatics Resource Center
706-542-1447 | bdp@uga.edu | http://eupathdb.org
--
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.