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.17-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.17 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.17-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.17-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.16 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.16-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.16-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.16-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.14 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.14-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.14-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.14-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.13 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.13-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.13-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.13-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.12 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.12-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.12-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-5.5.12-universal-darwin lib/puppet/indirector/certificate_request/ca.rb