Sha256: 025dd9d5eb899d8718be6de690ad4047a0c3e527801248655adee8e166f59eda

Contents?: true

Size: 1.06 KB

Versions: 238

Compression:

Stored size: 1.06 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 public
  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 public
  def search(request)
    nil
  end
end

Version data entries

238 entries across 238 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/indirector/node/write_only_yaml.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.12 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.12-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.12-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.12-universal-darwin lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.11 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.11-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.11-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.11-universal-darwin lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.10 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.10-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.10-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.10-universal-darwin lib/puppet/indirector/node/write_only_yaml.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/indirector/node/write_only_yaml.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.9 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.9-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.9-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-4.10.9-universal-darwin lib/puppet/indirector/node/write_only_yaml.rb