These are all of the defaults needed to configure queueing.

Signed-off-by: Luke Kanies <[email protected]>
---
 lib/puppet/defaults.rb |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb
index 5de85ed..bdb2deb 100644
--- a/lib/puppet/defaults.rb
+++ b/lib/puppet/defaults.rb
@@ -151,7 +151,22 @@ module Puppet
             huge numbers that can then not be fed back into the system.  This 
is a hackish way to fail in a
             slightly more useful way when that happens."],
         :node_terminus => ["plain", "Where to find information about nodes."],
-        :queue_type => ["stomp", "Which type of queue to use for asynchronous 
processing."]
+        :queue_type => ["stomp", "Which type of queue to use for asynchronous 
processing."],
+        :queue_source => ["stomp://localhost/", "Which type of queue to use 
for asynchronous processing."],
+        :async_storeconfigs => {:default => false, :desc => "Whether to use a 
queueing system to provide asynchronous database integration.
+            Requires that ``puppetqd`` be running.",
+            :hook => proc do |value|
+                if value
+                    # This reconfigures the terminii for Node, Facts, and 
Catalog
+                    Puppet.settings[:storeconfigs] = true
+
+                    # But then we modify the configuration
+                    Puppet::Node::Catalog.cache_class = :queue
+                else
+                    raise "Cannot disable asynchronous storeconfigs in a 
running process"
+                end
+            end
+        }
     )
 
     hostname = Facter["hostname"].value
-- 
1.6.1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to