Issue #6890 has been updated by David Gwilliam.
Priority changed from Low to Normal
This problem appears specifically when running 'puppet agent' interactively, as
the init script (on CentOS/RHEL 5) adds the --logdest directive after sourcing
/etc/sysconfig/pe-puppet:
# The puppetmaster server
#PUPPET_SERVER=puppet
# If you wish to specify the port to connect to do so here
#PUPPET_PORT=8140
# Where to log to. Specify syslog to send log messages to the system log.
PUPPET_LOG=/var/log/pe-puppet/puppet.log
# You may specify other parameters to the puppet client here
PUPPET_EXTRA_OPTS=--autoflush
/etc/init.d/pe-puppet (relevant portions):
[ -f /etc/sysconfig/pe-puppet ] && . /etc/sysconfig/pe-puppet
lockfile=${LOCKFILE-/var/lock/subsys/pe-puppet}
pidfile=${PIDFILE-/var/run/pe-puppet/agent.pid}
puppetd=${PUPPETD-/opt/puppet/bin/puppet}
confdir=/etc/puppetlabs/puppet
RETVAL=0
# Source function library.
. /etc/rc.d/init.d/functions
PUPPET_OPTS="agent"
[ -n "$PUPPET_SERVER" ] && PUPPET_OPTS="${PUPPET_OPTS}
--server=${PUPPET_SERVER}"
[ -n "$PUPPET_LOG" ] && PUPPET_OPTS="${PUPPET_OPTS}
--logdest=${PUPPET_LOG}"
[ -n "$PUPPET_PORT" ] && PUPPET_OPTS="${PUPPET_OPTS}
--masterport=${PUPPET_PORT}"
----------------------------------------
Feature #6890: No default for 'puppetdlog' in puppet 2.6.6
https://projects.puppetlabs.com/issues/6890#change-56168
Author: Jeff Lewis
Status: Needs Decision
Priority: Normal
Assignee: Nigel Kersten
Category: logging
Target version:
Affected Puppet version:
Keywords:
Branch:
I'm running puppet 2.6.6 on Centos 5.5.
puppetd is not logging to $logdir out of the box. After setting 'puppetdlog =
$logdir/puppet.log' logging continues as expected. It would be great if
puppetd had some sane default value for puppetdlog, like that shown above.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.