Sha256: 93903def4ad8dc187a53ed5fa3187dd29998f233db197db440046139e0f48cac

Contents?: true

Size: 715 Bytes

Versions: 315

Compression:

Stored size: 715 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.key} already has a #{host.state} certificate; new certificate will overwrite it"
      else
        raise "#{request.key} already has a #{host.state} certificate; ignoring certificate request"
      end
    end

    result = super
    Puppet.notice "#{request.key} has a waiting certificate request"
    result
  end
end

Version data entries

315 entries across 315 versions & 5 rubygems

Version Path
puppet-4.10.4-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-retrospec-1.4.1 vendor/gems/puppet-4.5.2/lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.1 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.1-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.1-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.1-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-retrospec-1.4.0 vendor/gems/puppet-4.5.2/lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.0 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.0-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.0-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.10.0-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-retrospec-1.3.2 vendor/gems/puppet-4.5.2/lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.4 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.4-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.4-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.4-universal-darwin lib/puppet/indirector/certificate_request/ca.rb
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.3 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.3-x86-mingw32 lib/puppet/indirector/certificate_request/ca.rb
puppet-4.9.3-x64-mingw32 lib/puppet/indirector/certificate_request/ca.rb