Issue #2644 has been updated by James Turnbull. Target version changed from Rowlf to Statler
---------------------------------------- Bug #2644: defaults.rb should set Puppet[:config] to /etc/puppet/puppet.conf if user is puppet http://projects.reductivelabs.com/issues/2644 Author: defunt Bode Status: Accepted Priority: Normal Assigned to: Category: package Target version: Statler Affected 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://reductivelabs.com/redmine/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.
