On Wed, Sep 29, 2010 at 4:58 AM, Gavin <[email protected]> wrote: [snip] > Here is what my config.ru looks like: > > # 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 = "puppetmasterd" > require 'puppet' > > # if you want debugging: > # ARGV << "--debug" > > ARGV << "--rack" > require 'puppet/application/puppetmasterd' > # we're usually running inside a Rack::Builder.new {} block, > # therefore we need to call run *here*. > run Puppet::Application[:puppetmasterd].run
I notice you're using Puppet 2.6 and the config.ru you pasted does not work with puppet 2.6 but did work with puppet 0.25.x. The config.ru file contents have changed for version 2.6. This is a result of the change in Application controller names and the shift to a single executable. Take a look at the config.ru file that ships with the puppet 2.6.1 source code for information about how it's changed. If you have any questions, I'm happy to help. The file you're looking for is in ext/rack/files/config.ru -- Jeff McCune http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
