Issue #2644 has been updated by Andrew Parker. Target version deleted (2.7.x)
---------------------------------------- Bug #2644: defaults.rb should set Puppet[:config] to /etc/puppet/puppet.conf if user is puppet https://projects.puppetlabs.com/issues/2644#change-80230 Author: defunt Bode Status: Accepted Priority: Normal Assignee: Category: package Target version: Affected Puppet version: 0.24.8 Keywords: Branch: The below code from defaults.rb always sets the puppet.conf location to be ~/.puppet/puppet.conf for the puppet user (who is also the calling user for external node classifiers). This makes it impossible to use the parse_config call to grab config information in the node classifier. as a work around, I had to do the following #ln -s /etc/puppet/puppet.conf /root/.puppet/puppet.conf <pre> if name != "puppetmasterd" and Puppet::Util::SUIDManager.uid != 0 conf = File.expand_path("~/.puppet") var = File.expand_path("~/.puppet/var") else conf = "/etc/puppet" var = "/var/puppet" end </pre> -- 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.
