Sha256: 8c92e11c6f1be13896a17c9e2a646b8d5c8f77e6401ab4ec76dbbf762f47ea76

Contents?: true

Size: 817 Bytes

Versions: 162

Compression:

Stored size: 817 Bytes

Contents

require 'puppet/indirector/ssl_file'
require 'puppet/ssl/certificate_request'

class Puppet::SSL::CertificateRequest::Ca < Puppet::Indirector::SslFile
  desc "Manage the CA collection of certificate requests on disk."

  store_in :csrdir

  def save(request)
    if host = Puppet::SSL::Host.indirection.find(request.key)
      if Puppet[:allow_duplicate_certs]
        Puppet.notice _("%{request} already has a %{host} certificate; new certificate will overwrite it") % { request: request.key, host: host.state }
      else
        raise _("%{request} already has a %{host} certificate; ignoring certificate request") % { request: request.key, host: host.state }
      end
    end

    result = super
    Puppet.notice _("%{request} has a waiting certificate request") % { request: request.key }
    result
  end
end

Version data entries

162 entries across 162 versions & 2 rubygems

Version Path
puppet-5.5.22 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.22-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.22-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.22-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.21 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.21-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.21-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.21-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.20 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.20-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.20-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.20-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.19 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.19-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.19-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.19-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.18 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.18-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.18-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.18-universal-darwin lib/puppet/indirector/certificate_request/ca.rb