summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-02 18:15:28 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-02 18:15:28 +0000
commitbf3767625a6f5243381aaef57eb4637eeeb4e9df (patch)
tree8253bd42b08689a909c0301130c39b92495d179f
parent8d11bb8a8dc6a6dff4f88e2a07f8ed14c5d3fc6d (diff)
downloadpuppet-bf3767625a6f5243381aaef57eb4637eeeb4e9df.tar.gz
puppet-bf3767625a6f5243381aaef57eb4637eeeb4e9df.tar.xz
puppet-bf3767625a6f5243381aaef57eb4637eeeb4e9df.zip
Applying patch to puppetd from Jos Backus
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2453 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-xbin/puppetd17
1 files changed, 8 insertions, 9 deletions
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|