Issue #12540 has been updated by Josh Cooper. Status changed from Accepted to Closed
This has since been resolved in 3.0.x, at least 3.0.1, likely due to #16637. The confdir and vardir settings are no longer dependent on run_mode, and instead solely based on whether you're running as root or not. ---------------------------------------- Bug #12540: puppet config print generates invalid log settings if puppet.conf doesn't exist https://projects.puppetlabs.com/issues/12540#change-76142 Author: Josh Cooper Status: Closed Priority: Normal Assignee: Category: Target version: 2.7.x 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 [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.
