Book Image

Mastering Puppet - Second Edition

By : Thomas Uphill
Book Image

Mastering Puppet - Second Edition

By: Thomas Uphill

Overview of this book

Puppet is a configuration management system and a language. It was written for and by system administrators to manage large numbers of systems efficiently and prevent configuration drifts. Mastering Puppet deals with the issues faced when scaling out Puppet to handle large numbers of nodes. It will show you how to fit Puppet into your enterprise and allow many developers to work on your Puppet code simultaneously. In addition, you will learn to write custom facts and roll your own modules to solve problems. Next, popular options for performing reporting and orchestration tasks will be introduced in this book. Moving over to troubleshooting techniques, which will be very useful. The concepts presented are useful to any size organization. By the end of the book, you will know how to deal with problems of scale and exceptions in your code, automate workflows, and support multiple developers working simultaneously.
Table of Contents (17 chapters)

Turning on reporting


To turn on reporting, set report = true in the [agent] section of puppet.conf on all your nodes.

Once you have done that, you need to configure the master to deal with reports. There are several report types included with Puppet; they are listed at: http://docs.puppetlabs.com/references/latest/report.html. Puppet Labs documentation on reporting can be found at: http://docs.puppetlabs.com/guides/reporting.html.

There are three simple reporting options included with Puppet: http, log, and store. The http option will send the report as a YAML file via a POST operation to the HTTP or HTTPS URL pointed to by the reporturl setting in puppet.conf. The log option uses syslog to send reports from the nodes via syslog on the master; this method will only work with the WEBrick and Passenger implementations of Puppet. puppetserver sends syslog messages via the Logback mechanism, which is covered in a following section. The last option is store, which simply stores the report as a...