1PUPPET-REPORT(8) Puppet manual PUPPET-REPORT(8)
2
3
4
6 puppet-report - Create, display, and submit reports.
7
9 puppet report action [--terminus _TERMINUS]
10
12 Note that any setting that´s valid in the configuration file is also a
13 valid long argument, although it may or may not be relevant to the
14 present action. For example, server and run_mode are valid settings, so
15 you can specify --server <servername>, or --run_mode <runmode> as an
16 argument.
17
18 See the configuration file documentation at https://pup‐
19 pet.com/docs/puppet/latest/configuration.html for the full list of ac‐
20 ceptable parameters. A commented list of all configuration options can
21 also be generated by running puppet with --genconfig.
22
23 --render-as FORMAT
24 The format in which to render output. The most common formats
25 are json, s (string), yaml, and console, but other options such
26 as dot are sometimes available.
27
28 --verbose
29 Whether to log verbosely.
30
31 --debug
32 Whether to log debug information.
33
34 --extra HASH
35 A terminus can take additional arguments to refine the opera‐
36 tion, which are passed as an arbitrary hash to the back-end.
37 Anything passed as the extra value is just send direct to the
38 back-end.
39
40 --terminus _TERMINUS
41 Indirector faces expose indirected subsystems of Puppet. These
42 subsystems are each able to retrieve and alter a specific type
43 of data (with the familiar actions of find, search, save, and
44 destroy) from an arbitrary number of pluggable backends. In Pup‐
45 pet parlance, these backends are called terminuses.
46
47 Almost all indirected subsystems have a rest terminus that in‐
48 teracts with the puppet master´s data. Most of them have addi‐
49 tional terminuses for various local data models, which are in
50 turn used by the indirected subsystem on the puppet master when‐
51 ever it receives a remote request.
52
53 The terminus for an action is often determined by context, but
54 occasionally needs to be set explicitly. See the "Notes" section
55 of this face´s manpage for more details.
56
58 info - Print the default terminus class for this face.
59 SYNOPSIS
60
61 puppet report info [--terminus _TERMINUS]
62
63 DESCRIPTION
64
65 Prints the default terminus class for this subcommand. Note that
66 different run modes may have different default termini; when in
67 doubt, specify the run mode with the ´--run_mode´ option.
68
69 save - API only: submit a report.
70 SYNOPSIS
71
72 puppet report save [--terminus _TERMINUS] report
73
74 DESCRIPTION
75
76 API only: create or overwrite an object. As the Faces framework
77 does not currently accept data from STDIN, save actions cannot
78 currently be invoked from the command line.
79
80 RETURNS
81
82 Nothing.
83
84 submit - API only: submit a report with error handling.
85 SYNOPSIS
86
87 puppet report submit [--terminus _TERMINUS] report
88
89 DESCRIPTION
90
91 API only: Submits a report to the puppet master. This action is
92 essentially a shortcut and wrapper for the save action with the
93 rest terminus, and provides additional details in the event of a
94 failure.
95
97 save
98
99 From the implementation of puppet report submit (API example):
100
101 begin Puppet::Transaction::Report.indirection.terminus_class = :rest
102 Puppet::Face[:report, "0.0.1"].save(report) Puppet.notice "Uploaded re‐
103 port for #{report.name}" rescue => detail Puppet.log_exception(detail,
104 "Could not send report: #{detail}") end
105
106 submit
107
108 API example:report = Puppet::Face[:catalog, ´0.0.1´].apply Pup‐
109 pet::Face[:report, ´0.0.1´].submit(report) return report
110
112 This subcommand is an indirector face, which exposes find, search,
113 save, and destroy actions for an indirected subsystem of Puppet. Valid
114 termini for this face include:
115
116 • json
117
118 • msgpack
119
120 • processor
121
122 • rest
123
124 • yaml
125
126
127
129 Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING
130
131
132
133Puppet, Inc. May 2022 PUPPET-REPORT(8)