diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-07-04 12:49:11 +0200 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-07-18 10:31:10 +1000 |
commit | a06094ea0f3a38446859de55100ac7fdb0488a9d (patch) | |
tree | f59e75605d9050d4632cede29a8cd086b407b570 /spec/integration | |
parent | b2a008e30ea57f0c94d605de855c45c0fdf0e5ce (diff) | |
download | puppet-a06094ea0f3a38446859de55100ac7fdb0488a9d.tar.gz puppet-a06094ea0f3a38446859de55100ac7fdb0488a9d.tar.xz puppet-a06094ea0f3a38446859de55100ac7fdb0488a9d.zip |
Feature #2378 - Implement "thin_storeconfigs"
Thin storeconfigs is a limited version of storeconfigs that is
more performant and still allows the exported/collected resources
system wich is the primary use of storeconfigs.
It works by storing to the database only the exported resources, tags
and host facts.
Since usually those exported resources are less than the number
of total resources for a node, it is expected to be faster than
regular storeconfigs (especially for the first run).
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/integration')
-rwxr-xr-x | spec/integration/defaults.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/integration/defaults.rb b/spec/integration/defaults.rb index a99a54435..e52eb5352 100755 --- a/spec/integration/defaults.rb +++ b/spec/integration/defaults.rb @@ -140,4 +140,17 @@ describe "Puppet defaults" do Puppet.settings[:storeconfigs] = true end end + + describe "when enabling thing storeconfigs" do + before do + Puppet::Resource::Catalog.stubs(:cache_class=) + Puppet::Node::Facts.stubs(:cache_class=) + Puppet::Node.stubs(:cache_class=) + end + + it "should set storeconfigs to true" do + Puppet.settings[:thin_storeconfigs] = true + Puppet.settings[:storeconfigs].should be_true + end + end end |