Issue #4527 has been updated by Bernhard Miklautz. File 0001-Updated-config.ru-example-for-2.6.1-part-2.patch added Status changed from Closed to Re-opened
The pushed commit didn't fix the issue since the "require puppet" is still in there. Attached you find a patch which fixes the problem. It changes config.ru as shown above. ---------------------------------------- Bug #4527: Example config.ru does not work with 2.6.1rc2 http://projects.puppetlabs.com/issues/4527 Author: Bernhard Miklautz Status: Re-opened Priority: Normal Assigned to: James Turnbull Category: passenger Target version: 2.6.1 Affected version: 2.6.1rc2 Keywords: Branch: The example config.ru in /rack/files/config.ru doesn't work with version 2.6.1rc2. Since commit 6aac8f0185db1d153583 ([#4467] Make Puppet Master respect facts_terminus settings) facts_terminus isn't set in the master.rb anymore. The example config.ru requires puppet but at this time application_name isn't set properly and facts_terminus is set to facter. This led to the following error message on my clients: "err: Could not retrieve catalog from remote server: Error 400 on SERVER: You cannot save facts to the code store; it is only used for getting facts from Facter" I suggest to include the following config.ru as example: <pre> # a config.ru, for use with every rack-compatible webserver. # SSL needs to be handled outside this, though. # if puppet is not in your RUBYLIB: # $:.unshift('/opt/puppet/lib') $0 = "master" # if you want debugging: # ARGV << "--debug" ARGV << "--rack" require 'puppet/application/master' # we're usually running inside a Rack::Builder.new {} block, # therefore we need to call run *here*. run Puppet::Application[:master].run </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.
