diff options
| author | Luke Kanies <luke@reductivelabs.com> | 2010-03-25 14:55:51 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2010-03-27 14:32:07 +1100 |
| commit | 7018cf5634bcbdcc167d5fbe5560801a2a131ca9 (patch) | |
| tree | 140ad6afb19c3f23cb92f5b234ac6694af0ed288 /spec/unit/resource | |
| parent | 978ab8a9a1f1c7ea23698543bf86f587ae88e6c4 (diff) | |
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 <luke@reductivelabs.com>
Diffstat (limited to 'spec/unit/resource')
| -rwxr-xr-x | spec/unit/resource/catalog.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/unit/resource/catalog.rb b/spec/unit/resource/catalog.rb index db672438d..ab6aa68be 100755 --- a/spec/unit/resource/catalog.rb +++ b/spec/unit/resource/catalog.rb @@ -843,8 +843,14 @@ describe Puppet::Resource::Catalog, "when compiling" do Puppet::Resource::Catalog.find(:myconfig) end - it "should default to the 'compiler' terminus" do - Puppet::Resource::Catalog.indirection.terminus_class.should == :compiler + it "should use the value of the 'catalog_terminus' setting to determine its terminus class" do + Puppet.settings[:catalog_terminus] = "rest" + Puppet::Resource::Catalog.indirection.terminus_class.should == :rest + end + + it "should allow the terminus class to be set manually" do + Puppet::Resource::Catalog.indirection.terminus_class = :rest + Puppet::Resource::Catalog.indirection.terminus_class.should == :rest end after do |
