1PUPPET-NODE(8)                   Puppet manual                  PUPPET-NODE(8)
2
3
4

NAME

6       puppet-node - View and manage node definitions.
7

SYNOPSIS

9       puppet node action [--terminus _TERMINUS]
10

DESCRIPTION

12       This  subcommand  interacts with node objects, which are used by Puppet
13       to build a catalog. A node object consists of the node´s  facts,  envi‐
14       ronment,  node  parameters  (exposed  in  the parser as top-scope vari‐
15       ables), and classes.
16

OPTIONS

18       Note that any setting that´s valid in the configuration file is also  a
19       valid  long  argument,  although  it  may or may not be relevant to the
20       present action. For example, server and run_mode are valid settings, so
21       you  can  specify  --server <servername>, or --run_mode <runmode> as an
22       argument.
23
24       See   the   configuration   file    documentation    at    https://pup
25       pet.com/docs/puppet/latest/configuration.html  for the full list of ac‐
26       ceptable parameters. A commented list of all configuration options  can
27       also be generated by running puppet with --genconfig.
28
29       --render-as FORMAT
30              The  format  in  which to render output. The most common formats
31              are json, s (string), yaml, and console, but other options  such
32              as dot are sometimes available.
33
34       --verbose
35              Whether to log verbosely.
36
37       --debug
38              Whether to log debug information.
39
40       --extra HASH
41              A  terminus  can  take additional arguments to refine the opera‐
42              tion, which are passed as an arbitrary  hash  to  the  back-end.
43              Anything  passed  as  the extra value is just send direct to the
44              back-end.
45
46       --terminus _TERMINUS
47              Indirector faces expose indirected subsystems of  Puppet.  These
48              subsystems  are  each able to retrieve and alter a specific type
49              of data (with the familiar actions of find,  search,  save,  and
50              destroy) from an arbitrary number of pluggable backends. In Pup‐
51              pet parlance, these backends are called terminuses.
52
53              Almost all indirected subsystems have a rest terminus  that  in‐
54              teracts  with  the puppet master´s data. Most of them have addi‐
55              tional terminuses for various local data models,  which  are  in
56              turn used by the indirected subsystem on the puppet master when‐
57              ever it receives a remote request.
58
59              The terminus for an action is often determined by  context,  but
60              occasionally needs to be set explicitly. See the "Notes" section
61              of this face´s manpage for more details.
62

ACTIONS

64       clean - Clean up signed certs, cached facts, node objects, and  reports
65       for a node stored by the puppetmaster
66              SYNOPSIS
67
68              puppet node clean [--terminus _TERMINUS] host1 [host2 ...]
69
70              DESCRIPTION
71
72              Cleans  up the following information a puppet master knows about
73              a node:
74
75              Signed certificates - ($vardir/ssl/ca/signed/node.domain.pem)
76
77              Cached facts - ($vardir/yaml/facts/node.domain.yaml)
78
79              Cached node objects - ($vardir/yaml/node/node.domain.yaml)
80
81              Reports - ($vardir/reports/node.domain)
82
83              NOTE: this action now cleans up certs  via  Puppet  Server´s  CA
84              API. A running server is required for certs to be cleaned.
85
86       find - Retrieve a node object.
87              SYNOPSIS
88
89              puppet node find [--terminus _TERMINUS] host
90
91              DESCRIPTION
92
93              Retrieve a node object.
94
95              RETURNS
96
97              A  hash  containing the node´s classes, environment, expiration,
98              name, parameters (its facts, combined with any  ENC-set  parame‐
99              ters), and time. When used from the Ruby API: a Puppet::Node ob‐
100              ject.
101
102              RENDERING ISSUES: Rendering as string  and  json  are  currently
103              broken; node objects can only be rendered as yaml.
104
105       info - Print the default terminus class for this face.
106              SYNOPSIS
107
108              puppet node info [--terminus _TERMINUS]
109
110              DESCRIPTION
111
112              Prints the default terminus class for this subcommand. Note that
113              different run modes may have different default termini; when  in
114              doubt, specify the run mode with the ´--run_mode´ option.
115

EXAMPLES

117       find
118
119       Retrieve  an "empty" (no classes, no ENC-imposed parameters, and an en‐
120       vironment of "production") node:
121
122       $ puppet node find somenode.puppetlabs.lan --terminus plain --render-as
123       yaml
124
125       Retrieve a node using the Puppet Server´s configured ENC:
126
127       $  puppet  node find somenode.puppetlabs.lan --terminus exec --run_mode
128       server --render-as yaml
129
130       Retrieve the same node from the Puppet Server:
131
132       $ puppet node find somenode.puppetlabs.lan --terminus rest  --render-as
133       yaml
134

NOTES

136       This  subcommand  is  an  indirector  face, which exposes find, search,
137       save, and destroy actions for an indirected subsystem of Puppet.  Valid
138       termini for this face include:
139
140exec
141
142json
143
144memory
145
146msgpack
147
148plain
149
150rest
151
152store_configs
153
154yaml
155
156
157
159       Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING
160
161
162
163Puppet, Inc.                     October 2021                   PUPPET-NODE(8)
Impressum