Generating reports
If you're managing a lot of machines, Puppet's reporting facility can give you some valuable information on what's actually happening out there.
How to do it…
To enable reports, just add this to a client's puppet.conf
:
report = true
How it works…
With reporting enabled, Puppet will generate a report file, containing data such as
The date and time of the run
Total time for the run
Log messages output during the run
List of all resources in the client's manifest
Whether Puppet changed any resources, and how many
Whether the run succeeded or failed
By default, these reports are stored on the node in /var/lib/puppet/reports
in a directory named after the hostname, but you can specify a different destination using the reportdir
option. You can create your own scripts to process these reports (which are in the standard
YAML format).
There's more…
If you just want one report, or you don't want to enable reporting all the time, you can add the --report
switch to the command line when you run...