Book Image

Extending Puppet

By : Alessandro Franceschi
Book Image

Extending Puppet

By: Alessandro Franceschi

Overview of this book

Table of Contents (21 chapters)
Extending Puppet
About the Author
About the Reviewers

Installation and configuration

PuppetDB is an open source Closure application complementary to Puppet. It does exactly what the name suggests; it stores Puppet data that comprises the following:

  • All the facts of the managed nodes

  • A copy of the catalog compiled by the Master and sent to each node

  • The reports of the subsequent Puppet runs with all the events that have occurred

What is stored must be queried, and for this, PuppetDB exposes a REST-like API that allows access to all its data.

Out of the box, it can act as an alternative for the following two functions done earlier using the ActiveRecord libraries:

  • The backend for stored configurations, where we can store our exported resources

  • A replacement of the Inventory Service (an API we can use to query the facts of all the managed nodes)

While read operations are based on a REST-like API, data is written by commands sent by the Puppet Master and queued asynchronously by PuppetDB to a pool of internal workers. These workers deliver data to the...