lib/puppet/defaults.rb in puppet-2.6.12 vs lib/puppet/defaults.rb in puppet-2.6.13
- old
+ new
@@ -122,10 +122,11 @@
:facts_terminus => {
:default => Puppet.application_name.to_s == "master" ? 'yaml' : 'facter',
:desc => "The node facts terminus.",
:hook => proc do |value|
require 'puppet/node/facts'
- if value.to_s == "rest"
+ # Cache to YAML if we're uploading facts away
+ if %w[rest inventory_service].include? value.to_s
Puppet::Node::Facts.cache_class = :yaml
end
end
},
:inventory_terminus => [ "$facts_terminus", "Should usually be the same as the facts terminus" ],