Sha256: 5ce0af88f07e88c518752947e146616f17d503ffcf6268331b87e75559029f27

Contents?: true

Size: 594 Bytes

Versions: 63

Compression:

Stored size: 594 Bytes

Contents

require 'puppet/node'
require 'puppet/indirector/plain'

class Puppet::Node::Plain < Puppet::Indirector::Plain
  desc "Always return an empty node object. Assumes you keep track of nodes
    in flat file manifests.  You should use it when you don't have some other,
    functional source you want to use, as the compiler will not work without a
    valid node terminus.

    Note that class is responsible for merging the node's facts into the
    node instance before it is returned."

  # Just return an empty node.
  def find(request)
    node = super
    node.fact_merge
    node
  end
end

Version data entries

63 entries across 63 versions & 4 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.1.3 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.1.2 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.1.1 lib/vendor/puppet/indirector/node/plain.rb
puppet-2.7.26 lib/puppet/indirector/node/plain.rb
puppet-2.7.25 lib/puppet/indirector/node/plain.rb
puppet-2.7.24 lib/puppet/indirector/node/plain.rb
puppet-2.7.23 lib/puppet/indirector/node/plain.rb
puppet-2.7.22 lib/puppet/indirector/node/plain.rb
puppet-parse-0.1.0 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.0.6 lib/vendor/puppet/indirector/node/plain.rb
puppet-2.7.21 lib/puppet/indirector/node/plain.rb
puppet-2.6.18 lib/puppet/indirector/node/plain.rb
puppet-parse-0.0.5 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.0.4 lib/vendor/puppet/indirector/node/plain.rb
puppet-parse-0.0.2 lib/vendor/puppet/indirector/node/plain.rb
puppet-2.7.20 lib/puppet/indirector/node/plain.rb
puppet-2.7.20.rc1 lib/puppet/indirector/node/plain.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/indirector/node/plain.rb
puppet-2.7.19 lib/puppet/indirector/node/plain.rb