From bf3767625a6f5243381aaef57eb4637eeeb4e9df Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 2 May 2007 18:15:28 +0000 Subject: Applying patch to puppetd from Jos Backus git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2453 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/puppetd | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'bin/puppetd') diff --git a/bin/puppetd b/bin/puppetd index 959f31743..441c3e899 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -112,10 +112,11 @@ # # serve:: # Start another type of server. By default default, +puppetd+ will start -# a server that allows authenticated and authorized remote nodes to trigger -# the configuration to be pulled down and applied. You can specify -# any other type of service here that does not require configuration, -# e.g., filebucket, ca, or pelement. +# a service handler that allows authenticated and authorized remote nodes to +# trigger the configuration to be pulled down and applied. You can specify +# any handler here that does not require configuration, e.g., filebucket, ca, +# or resource. The handlers are in +lib/puppet/network/handler+, and the names +# must match exactly, both in the call to +serve+ and in +namespaceauth.conf+. # # test:: # Enable the most common options used for testing. These are +onetime+, @@ -206,8 +207,8 @@ begin when "--disable" options[:disable] = true when "--serve" - if klass = Puppet::Network::Handler.handler(arg) - options[:serve][klass.name] = klass + if Puppet::Network::Handler.handler(arg) + options[:serve][arg.to_sym] = {} else raise "Could not find handler for %s" % arg end @@ -379,9 +380,7 @@ if Puppet[:listen] and ! options[:onetime] if options[:serve].empty? handlers = {:Runner => {}} else - handlers = options[:serve].inject({}) do |hash, name, klass| - hash[name] = {} - end + handlers = options[:serve] end handlers.each do |name, hash| -- cgit