MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.216.116.62
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/ruby/vendor_ruby/puppet/indirector/node/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/ruby/vendor_ruby/puppet/indirector/node/write_only_yaml.rb
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

MMCT - 2023