Sha256: 918abf86796b0e73c69c722a414d0da557a8f2d26138965661539cf4e21ce0af
Contents?: true
Size: 677 Bytes
Versions: 286
Compression:
Stored size: 677 Bytes
Contents
require 'puppet/indirector/code' require 'puppet/ssl/certificate' class Puppet::SSL::Certificate::DisabledCa < Puppet::Indirector::Code desc "Manage SSL certificates on disk, but reject any remote access to the SSL data store. Used when a master has an explicitly disabled CA to prevent clients getting confusing 'success' behaviour." def initialize @file = Puppet::SSL::Certificate.indirection.terminus(:file) end [:find, :head, :search, :save, :destroy].each do |name| define_method(name) do |request| if request.remote? raise Puppet::Error, "this master is not a CA" else @file.send(name, request) end end end end
Version data entries
286 entries across 286 versions & 4 rubygems