Sha256: 7d5fc4bf6acda46a6cc30a12e7fd4b271c08db385ece95cc6b4792a38bd861e9

Contents?: true

Size: 1.72 KB

Versions: 150

Compression:

Stored size: 1.72 KB

Contents

require 'puppet/indirector/face'

Puppet::Indirector::Face.define(:certificate_request, '0.0.1') do
  copyright "Puppet Labs", 2011
  license   "Apache 2 license; see COPYING"

  summary "Manage certificate requests."
  description <<-EOT
    This subcommand retrieves and submits certificate signing requests (CSRs).
  EOT

  # Per-action doc overrides
  get_action(:destroy).summary "Invalid for this subcommand."

  find = get_action(:find)
  find.summary "Retrieve a single CSR."
  find.arguments "<host>"
  find.render_as = :s
  find.returns <<-EOT
    A single certificate request. When used from the Ruby API, returns a
    Puppet::SSL::CertificateRequest object.
  EOT
  find.examples <<-EOT
    Retrieve a single CSR from the puppet master's CA:

    $ puppet certificate_request find somenode.puppetlabs.lan --terminus rest
  EOT

  search = get_action(:search)
  search.summary "Retrieve all outstanding CSRs."
  search.arguments "<dummy_text>"
  search.render_as = :s
  search.returns <<-EOT
    A list of certificate requests. When used from the Ruby API, returns an
    array of Puppet::SSL::CertificateRequest objects.
  EOT
  search.short_description <<-EOT
    Retrieves all outstanding certificate signing requests. Due to a known bug,
    this action requires a dummy search key, the content of which is irrelevant.
  EOT
  search.notes <<-EOT
    Although this action always returns all CSRs, it requires a dummy search
    key; this is a known bug.
  EOT
  search.examples <<-EOT
    Retrieve all CSRs from the local CA (similar to 'puppet cert list'):

    $ puppet certificate_request search x --terminus ca
  EOT

  get_action(:save).summary "API only: submit a certificate signing request."
  get_action(:save).arguments "<x509_CSR>"
end

Version data entries

150 entries across 150 versions & 5 rubygems

Version Path
puppet-3.8.3 lib/puppet/face/certificate_request.rb
puppet-3.8.3-x86-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.8.3-x64-mingw32 lib/puppet/face/certificate_request.rb
puppet-retrospec-0.8.0 vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_request.rb
puppet-3.8.2 lib/puppet/face/certificate_request.rb
puppet-3.8.2-x86-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.8.2-x64-mingw32 lib/puppet/face/certificate_request.rb
puppet-retrospec-0.7.3 vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_request.rb
puppet-retrospec-0.7.2 vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_request.rb
puppet-3.8.1 lib/puppet/face/certificate_request.rb
puppet-3.8.1-x86-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.8.1-x64-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.7.5 lib/puppet/face/certificate_request.rb
puppet-3.7.5-x86-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.7.5-x64-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.7.4 lib/puppet/face/certificate_request.rb
puppet-3.7.4-x86-mingw32 lib/puppet/face/certificate_request.rb
puppet-3.7.4-x64-mingw32 lib/puppet/face/certificate_request.rb
puppet-parse-0.1.4 lib/vendor/puppet/face/certificate_request.rb
puppet-parse-0.1.3 lib/vendor/puppet/face/certificate_request.rb