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-4.9.3-universal-darwin lib/puppet/face/facts.rb
puppet-4.9.2 lib/puppet/face/facts.rb
puppet-4.9.2-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.9.2-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.9.2-universal-darwin lib/puppet/face/facts.rb
puppet-4.9.1 lib/puppet/face/facts.rb
puppet-4.9.1-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.9.1-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.9.1-universal-darwin lib/puppet/face/facts.rb
puppet-retrospec-1.3.0 vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb
puppet-4.9.0 lib/puppet/face/facts.rb
puppet-4.9.0-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.9.0-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.9.0-universal-darwin lib/puppet/face/facts.rb
puppet-4.8.2 lib/puppet/face/facts.rb
puppet-4.8.2-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.8.2-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.8.2-universal-darwin lib/puppet/face/facts.rb
puppet-4.7.1 lib/puppet/face/facts.rb
puppet-4.7.1-x86-mingw32 lib/puppet/face/facts.rb