Sha256: 64ac3f9777b89a8f03158f0fe48baee41b506df28af01af7ffce1d33461aa5d4

Contents?: true

Size: 1.66 KB

Versions: 46

Compression:

Stored size: 1.66 KB

Contents

require 'puppet/indirector/face'
Puppet::Indirector::Face.define(:node, '0.0.1') do
  copyright "Puppet Labs", 2011
  license   "Apache 2 license; see COPYING"

  summary "View and manage node definitions."
  description <<-'EOT'
    This subcommand interacts with node objects, which are used by Puppet to
    build a catalog. A node object consists of the node's facts, environment,
    node parameters (exposed in the parser as top-scope variables), and classes.
  EOT

  get_action(:destroy).summary "Invalid for this subcommand."
  get_action(:search).summary "Invalid for this subcommand."
  get_action(:save).summary "Invalid for this subcommand."
  get_action(:save).description "Invalid for this subcommand."

  find = get_action(:find)
  find.summary "Retrieve a node object."
  find.arguments "<host>"
  find.returns <<-'EOT'
    A hash containing the node's `classes`, `environment`, `expiration`, `name`,
    `parameters` (its facts, combined with any ENC-set parameters), and `time`.
    When used from the Ruby API: a Puppet::Node object.

    RENDERING ISSUES: Rendering as string and json are currently broken;
    node objects can only be rendered as yaml.
  EOT
  find.examples <<-'EOT'
    Retrieve an "empty" (no classes, no ENC-imposed parameters, and an
    environment of "production") node:

    $ puppet node find somenode.puppetlabs.lan --terminus plain --render-as yaml

    Retrieve a node using the puppet master's configured ENC:

    $ puppet node find somenode.puppetlabs.lan --terminus exec --mode master --render-as yaml

    Retrieve the same node from the puppet master:

    $ puppet node find somenode.puppetlabs.lan --terminus rest --render-as yaml
  EOT
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/face/node.rb
puppet-parse-0.1.3 lib/vendor/puppet/face/node.rb
puppet-parse-0.1.2 lib/vendor/puppet/face/node.rb
puppet-parse-0.1.1 lib/vendor/puppet/face/node.rb
puppet-2.7.26 lib/puppet/face/node.rb
puppet-2.7.25 lib/puppet/face/node.rb
puppet-2.7.24 lib/puppet/face/node.rb
puppet-2.7.23 lib/puppet/face/node.rb
puppet-2.7.22 lib/puppet/face/node.rb
puppet-parse-0.1.0 lib/vendor/puppet/face/node.rb
puppet-parse-0.0.6 lib/vendor/puppet/face/node.rb
puppet-2.7.21 lib/puppet/face/node.rb
puppet-parse-0.0.5 lib/vendor/puppet/face/node.rb
puppet-parse-0.0.4 lib/vendor/puppet/face/node.rb
puppet-parse-0.0.2 lib/vendor/puppet/face/node.rb
puppet-2.7.20 lib/puppet/face/node.rb
puppet-2.7.20.rc1 lib/puppet/face/node.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/face/node.rb
puppet-3.0.0.rc5 lib/puppet/face/node.rb
puppet-3.0.0.rc4 lib/puppet/face/node.rb