Sha256: 52c02d67cc6be5d12361396eedab8d3a66f415267da145b63f59de374f0d9006

Contents?: true

Size: 1.05 KB

Versions: 22

Compression:

Stored size: 1.05 KB

Contents

require 'puppet/node'
require 'puppet/indirector/yaml'

# This is a WriteOnlyYaml terminus that exists only for the purpose of being able to write
# node cache data that later can be read by the YAML terminus.
# The use case this supports is to make it possible to search among the "current nodes"
# when Puppet DB (recommended) or other central storage of information is not available.
#
# @see puppet issue 16753
# @see Puppet::Application::Master#setup_node_cache
# @api private
#
class Puppet::Node::WriteOnlyYaml < Puppet::Indirector::Yaml
  desc "Store node information as flat files, serialized using YAML,
    does not deserialize (write only)."

  # Overridden to always return nil. This is a write only terminus.
  # @param [Object] request Ignored.
  # @return [nil] This implementation always return nil'
  # @api
  def find(request)
    nil
  end

  # Overridden to always return nil. This is a write only terminus.
  # @param [Object] request Ignored.
  # @return [nil] This implementation always return nil
  # @api
  def search(request)
    nil
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
puppet-3.3.2 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.1.rc3 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.1.rc2 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.1.rc1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.0 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.0.rc3 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.3.0.rc2 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.4 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.3 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.3.rc1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.2 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.1.rc1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.0.rc2 lib/puppet/indirector/node/write_only_yaml.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.2.0.rc1 lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.1.1 lib/puppet/indirector/node/write_only_yaml.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/indirector/node/write_only_yaml.rb
puppet-3.1.0 lib/puppet/indirector/node/write_only_yaml.rb