Sha256: 98f60d827225c39bbb95a33caa3d275c413a124eed2cf1093f7ea376ccdb9a26

Contents?: true

Size: 1.11 KB

Versions: 40

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 Inc.", 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

40 entries across 40 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/face/facts.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/face/facts.rb
puppet-4.10.12 lib/puppet/face/facts.rb
puppet-4.10.12-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.12-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.12-universal-darwin lib/puppet/face/facts.rb
puppet-4.10.11 lib/puppet/face/facts.rb
puppet-4.10.11-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.11-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.11-universal-darwin lib/puppet/face/facts.rb
puppet-4.10.10 lib/puppet/face/facts.rb
puppet-4.10.10-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.10-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.10-universal-darwin lib/puppet/face/facts.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/face/facts.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/face/facts.rb
puppet-4.10.9 lib/puppet/face/facts.rb
puppet-4.10.9-x86-mingw32 lib/puppet/face/facts.rb
puppet-4.10.9-x64-mingw32 lib/puppet/face/facts.rb
puppet-4.10.9-universal-darwin lib/puppet/face/facts.rb