Class: Puppet::SSL::CertificateAuthority::AutosignConfig Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/ssl/certificate_authority.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(config_file) ⇒ AutosignConfig

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AutosignConfig.



532
533
534
# File 'lib/puppet/ssl/certificate_authority.rb', line 532

def initialize(config_file)
  @config = config_file
end

Instance Method Details

#allowed?(csr) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


536
537
538
# File 'lib/puppet/ssl/certificate_authority.rb', line 536

def allowed?(csr)
  autosign_store.allowed?(csr.name, '127.1.1.1')
end