PUPPET-REPORT(8)
π¦ PUPPET-REPORT π
okay bestie, so this is the puppet-report manual page β it lives in the Puppet manual and it's all about creating, displaying, and submitting reports. yes, reports. the receipts of your Puppet runs. iconic behavior honestly. β¨
πΈ SYNOPSIS πΈ
puppet report action [--terminus _TERMINUS]
that's the whole vibe. an action, optionally a TERMINUS, and you're off. π
β¨ OPTIONS β¨
okay so real talk first, before the actual flags: any setting that's valid in the configuration file is ALSO a valid long argument, even if it has literally nothing to do with the action you're running. like. it's fine. it just works that way. for example, server and run_mode are valid settings, so you can totally pass --server <servername> or --run_mode <runmode> as an argument. no cap.
and if you want the FULL list of acceptable parameters, go read the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html. also, if you run puppet with --genconfig it'll generate you a commented list of all configuration options. so helpful of it. π«Ά
--render-as FORMATβ the format to render output in. the most common ones arejson,s(that's string, bestie),yaml, andconsole, but sometimes other options likedotare available too. pick your fighter. π--verboseβ whether to log verbosely. yes. that's it. that's the flag.--debugβ whether to log debug information. for when you need the tea. π--terminus _TERMINUSβ okay this one's a whole thing so buckle up. Indirector faces expose indirected subsystems of Puppet. these subsystems can each retrieve and alter one specific type of data β with the familiar actions offind,search,save, anddestroyβ from an arbitrary number of pluggable backends. and in Puppet parlance, those backends are called terminuses. yes the word is weird. we move.
Almost all indirected subsystems have a rest terminus that talks to the puppet master's data. most of them also have extra terminuses for various local data models, which the indirected subsystem on the puppet master uses whenever it gets a remote request.
the terminus for an action is usually figured out from context, but sometimes you just have to set it explicitly. see the "Notes" section of this face's manpage for more details. iykyk. π
π ACTIONS π
π info β Print the default terminus class for this face.
SYNOPSIS
puppet report info [--terminus _TERMINUS]
DESCRIPTION
prints the default terminus class for this subcommand. heads up though: different run modes may have different default termini, so when in doubt, specify the run mode with the --run_mode option. don't be shy about it.
π₯ save β API only: submit a report.
SYNOPSIS
puppet report save [--terminus _TERMINUS] report
DESCRIPTION
API only: create or overwrite an object. and here's the sad part β because the Faces framework does not currently accept data from STDIN, save actions cannot currently be invoked from the command line. π so close yet so far.
RETURNS
Nothing. literally nothing. an empty void. π
π submit β API only: submit a report with error handling.
SYNOPSIS
puppet report submit [--terminus _TERMINUS] report
DESCRIPTION
API only: submits a report to the puppet master. this action is basically a shortcut and a wrapper for the save action with the rest terminus, and it gives you additional details if something goes wrong. it's the responsible older sibling of save. π§
π EXAMPLES π
save
from the implementation of puppet report submit (API example):
begin Puppet::Transaction::Report.indirection.terminus_class = :rest
Puppet::Face[:report, "0.0.1"].save(report) Puppet.notice "Uploaded
report for #{report.name}" rescue => detail Puppet.log_exception(detail,
"Could not send report: #{detail}") end
submit
API example:
API example:report = Puppet::Face[:catalog, Β΄0.0.1Β΄].apply
Puppet::Face[:report, Β΄0.0.1Β΄].submit(report) return report
β NOTES β
this subcommand is an indirector face, which means it exposes find, search, save, and destroy actions for an indirected subsystem of Puppet. and the valid termini for this face include:
jsonmsgpackprocessorrestyaml
that's the list. memorise it or don't, no pressure. π
π COPYRIGHT AND LICENSE π
Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING
ok that's the whole page bestie, go forth and report responsibly. π¦
and the cute lil sign-off at the bottom says this was brought to you by Puppet, Inc., dated September 2024, filed under PUPPET-REPORT(8). periodt. π
β¨
π¦ where this page comes from
- arch rolling: puppet 8.10.0-6 Β· Apache-2.0
- fedora 43: puppet 8.10.0-2.fc43 Β· Apache-2.0
- fedora 43: puppet 8.10.0-3.fc43 Β· Apache-2.0
- fedora 44: puppet 8.10.0-4.fc44 Β· Apache-2.0
- fedora 44: puppet 8.10.0-5.fc44 Β· Apache-2.0
- nixos 26.05: puppet 8.10.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms