# File lib/puppet/indirector/facts/facter.rb, line 9 def destroy(facts) raise Puppet::DevError, 'You cannot destroy facts in the code store; it is only used for getting facts from Facter' end
Lookup a host’s facts up in Facter.
# File lib/puppet/indirector/facts/facter.rb, line 18 def find(request) Facter.reset self.class.setup_external_search_paths(request) if Puppet.features.external_facts? self.class.setup_search_paths(request) result = Puppet::Node::Facts.new(request.key, Facter.to_hash) result.add_local_facts Puppet[:stringify_facts] ? result.stringify : result.sanitize result end
# File lib/puppet/indirector/facts/facter.rb, line 13 def save(facts) raise Puppet::DevError, 'You cannot save facts to the code store; it is only used for getting facts from Facter' end