Permalink
Browse files

(#3910) Default to no cache for nodes on master

The default cache terminus for nodes on the puppet master was yaml. If you are
using an ENC, there is no decent way to invalidate this cache. It does not
seem useful or necessary (the master only queries the node once per agent
check-in) so we're leaving it off by default.
  • Loading branch information...
pcarlisle committed Apr 18, 2012
1 parent 1f5be21 commit 5a79d9abd96e73ff166527cdee69a30da8ab0f87
Showing with 0 additions and 9 deletions.
  1. +0 −3 lib/puppet/application/master.rb
  2. +0 −6 spec/unit/application/master_spec.rb
@@ -225,9 +225,6 @@ def setup
Puppet.settings.use :main, :master, :ssl, :metrics
# Cache our nodes in yaml. Currently not configurable.
Puppet::Node.indirection.cache_class = :yaml
# Configure all of the SSL stuff.
if Puppet::SSL::CertificateAuthority.ca?
Puppet::SSL::Host.ca_location = :local
@@ -182,12 +182,6 @@
@master.setup
end
it "should cache class in yaml" do
Puppet::Node.indirection.expects(:cache_class=).with(:yaml)
@master.setup
end
describe "with no ca" do
it "should set the ca_location to none" do

0 comments on commit 5a79d9a

Please sign in to comment.