Sha256: 31be5e320f6080ed86a21cea373e9b046e88c3b4b3716bdcae24bcd78644b664

Contents?: true

Size: 1.11 KB

Versions: 124

Compression:

Stored size: 1.11 KB

Contents

require 'puppet/indirector/face'
require 'puppet/node/facts'

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

  summary "Retrieve and store facts."
  description <<-'EOT'
    This subcommand manages facts, which are collections of normalized system
    information used by Puppet. It can read facts directly from the local system
    (with the default `facter` terminus).
  EOT

  find = get_action(:find)
  find.summary "Retrieve a node's facts."
  find.arguments "[<node_certname>]"
  find.returns <<-'EOT'
    A hash containing some metadata and (under the "values" key) the set
    of facts for the requested node. When used from the Ruby API: A
    Puppet::Node::Facts object.

    RENDERING ISSUES: Facts cannot currently be rendered as a string; use yaml
    or json.
  EOT
  find.notes <<-'EOT'
    When using the `facter` terminus, the host argument is ignored.
  EOT
  find.examples <<-'EOT'
    Get facts from the local system:

    $ puppet facts find
  EOT
  find.default = true

  deactivate_action(:destroy)
  deactivate_action(:search)
end

Version data entries

124 entries across 124 versions & 2 rubygems

Version Path
puppet-retrospec-1.5.0 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-retrospec-1.4.1 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-4.10.1 lib/puppet/face/facts.rb
puppet-4.10.1-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.1-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.1-universal-darwin lib/puppet/face/facts.rb
puppet-retrospec-1.4.0 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-4.10.0 lib/puppet/face/facts.rb
puppet-4.10.0-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.0-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.0-universal-darwin lib/puppet/face/facts.rb
puppet-retrospec-1.3.2 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-4.9.4 lib/puppet/face/facts.rb
puppet-4.9.4-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.9.4-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.9.4-universal-darwin lib/puppet/face/facts.rb
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-4.9.3 lib/puppet/face/facts.rb
puppet-4.9.3-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.9.3-x64-mingw32 lib/puppet/face/facts.rb