Issue #12540 has been updated by Andrew Parker.

Target version deleted (2.7.x)


----------------------------------------
Bug #12540: puppet config print generates invalid log settings if puppet.conf 
doesn't exist
https://projects.puppetlabs.com/issues/12540#change-80188

Author: Josh Cooper
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


If ~/.puppet/puppet.conf does not exist, then `puppet config print` generates 
an invalid config for settings that are based on $vardir/log:

<pre>
$ rm ~/.puppet/puppet.conf
$ puppet config print logdir
$vardir/log
The Puppet log directory.
</pre>

Note the value of the logdir property is actually two lines with an embedded 
newline. Other log settings based on logdir have the same problem:

<pre>
$ puppet config print all | grep vardir/log
httplog = $vardir/logThe Puppet log directory./http.log
logdir = $vardir/logThe Puppet log directory.
masterhttplog = $vardir/logThe Puppet log directory./masterhttp.log
masterlog = $vardir/logThe Puppet log directory./puppetmaster.log
puppetdlog = $vardir/logThe Puppet log directory./puppetd.log
railslog = $vardir/logThe Puppet log directory./rails.log
</pre>

Now create an empty puppet.conf and all of the logdir settings use the 
interpolated value of $vardir/log:

<pre>
$ touch ~/.puppet/puppet.conf
$ puppet config print all | grep vardir/log
$ puppet config print logdir
/Users/josh/.puppet/var/log
</pre>

This looks to be an issue with run_mode, see `Puppet::Util::RunMode.logopts`



-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to