Class Puppet::Node::Facts::PuppetdbApply
In: lib/puppet/indirector/facts/puppetdb_apply.rb
Parent: Puppet::Node::Facts::Puppetdb

This class provides an alternative implementation of the Facts::Puppetdb terminus that better suits execution via `puppet apply`.

This terminus is designed to be used as a cache terminus, to ensure that facts are stored in PuppetDB. It does not act as a real cache itself however, it tells Puppet to fallback to the `terminus` instead.

Methods

find   save  

Attributes

dbstored  [W] 

Public Instance methods

By returning nil, we force puppet to use the real terminus.

Here we override the normal save, only saving the first time, as a `save` can be called multiple times in a puppet run.

[Validate]