Sha256: 5fd8c4f435b785645873dc29510b26625d162930364436085e4a1b52e258ceac

Contents?: true

Size: 1.12 KB

Versions: 68

Compression:

Stored size: 1.12 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

68 entries across 68 versions & 2 rubygems

Version Path
puppet-5.3.7 lib/puppet/face/facts.rb
puppet-5.3.7-x86-mingw32 lib/puppet/face/facts.rb
puppet-5.3.7-x64-mingw32 lib/puppet/face/facts.rb
puppet-5.3.7-universal-darwin lib/puppet/face/facts.rb
puppet-5.3.6 lib/puppet/face/facts.rb
puppet-5.3.6-x86-mingw32 lib/puppet/face/facts.rb
puppet-5.3.6-x64-mingw32 lib/puppet/face/facts.rb
puppet-5.3.6-universal-darwin lib/puppet/face/facts.rb
bolt-0.17.1 vendored/puppet/lib/puppet/face/facts.rb
bolt-0.17.0 vendored/puppet/lib/puppet/face/facts.rb
bolt-0.16.4 vendored/puppet/lib/puppet/face/facts.rb
bolt-0.16.3 vendored/puppet/lib/puppet/face/facts.rb
bolt-0.16.2 vendored/puppet/lib/puppet/face/facts.rb
puppet-5.4.0 lib/puppet/face/facts.rb
puppet-5.4.0-x86-mingw32 lib/puppet/face/facts.rb
puppet-5.4.0-x64-mingw32 lib/puppet/face/facts.rb
puppet-5.4.0-universal-darwin lib/puppet/face/facts.rb
puppet-5.3.5 lib/puppet/face/facts.rb
puppet-5.3.5-x86-mingw32 lib/puppet/face/facts.rb
puppet-5.3.5-x64-mingw32 lib/puppet/face/facts.rb