Sha256: 3c14df0315c3d02a8dc36062348d57fe8fa99728b67b809237ee47ac401ac162

Contents?: true

Size: 1.27 KB

Versions: 41

Compression:

Stored size: 1.27 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
  def initialize
    Puppet.warn_once('deprecations', 'Puppet::Node::WriteOnlyYaml', _('Puppet::Node::WriteOnlyYaml is deprecated and will be removed in a future release of Puppet.'))
    super
  end

  desc "(Deprecated) 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

41 entries across 41 versions & 2 rubygems

Version Path
bolt-0.15.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.14.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.13.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.12.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.11.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.10.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.9.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.8.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.3 lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.3-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.3-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.3-universal-darwin lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.7.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.6.1 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.6.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.5.1 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
bolt-0.5.0 vendored/puppet/lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.2 lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.2-x86-mingw32 lib/puppet/indirector/node/write_only_yaml.rb
puppet-5.3.2-x64-mingw32 lib/puppet/indirector/node/write_only_yaml.rb