From 7018cf5634bcbdcc167d5fbe5560801a2a131ca9 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 25 Mar 2010 14:55:51 -0700 Subject: Adding :catalog_terminus setting This will rarely be used, but it enables even more architectural flexibility, such as precompiling catalogs and storing them in memcached or equivalent. With this setup, a single host can probably serve all catalogs and you would then just have as many compiling hosts as needed. Signed-off-by: Luke Kanies --- lib/puppet/application/puppetd.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/puppet/application') diff --git a/lib/puppet/application/puppetd.rb b/lib/puppet/application/puppetd.rb index fe111867d..8b07c90dd 100644 --- a/lib/puppet/application/puppetd.rb +++ b/lib/puppet/application/puppetd.rb @@ -211,7 +211,10 @@ Puppet::Application.new(:puppetd) do Puppet::Transaction::Report.terminus_class = :rest - Puppet::Resource::Catalog.terminus_class = :rest + # Override the default; puppetd needs this, usually. + # You can still override this on the command-line with, e.g., :compiler. + Puppet[:catalog_terminus] = :rest + Puppet::Resource::Catalog.cache_class = :yaml Puppet::Node::Facts.terminus_class = :facter -- cgit