Puppet Documentation
TracNav
New To Puppet?
- About Puppet
- Compatibility
- Who Is Using Puppet?
- Getting Started
- Puppet Best Practice
- Downloading Puppet
- Language Tutorial
- Frequently Asked Questions
- Documentation Index
- Getting Help
- Puppet Users
Release Notes
- Glossary Of Terms
- Style Guide
- Puppet Recipes
- Facter Recipes
- Recipe Requests
- Module Organisation
- Puppet Modules
- Puppet Executables
- Puppet Internals
References and Advanced Topics
Table of Contents
- Introduction to Puppet
- Command Line Executables
- Type and Language Reference
- Configuration
- Cookbook
- Extending Puppet
- Related Applications
- Additional Documentation
Introduction to Puppet
Puppet is a declarative language for expressing system configuration, a client and server for distributing it, and a library for realizing the configuration.
The Puppet Introduction covers the basic architecture and design goals, including whether and why you should be using Puppet on your network.
There is an Installation Guide meant for installation of Puppet across a network and a Puppet Best Practice that covers conventions used among the Puppet community. There is also an Release Notes page which details major feature and language changes between versions.
There is also a guide for using Puppet from source to get an idea of what you can do without making a full deployment.
Command Line Executables
This section will eventually have links to full man-pages for each executable, but for now the man pages can be found by running the respective executable with the --help flag (this requires the Rdoc::usage module, which is often missing).
However, most arguments for the executables are in the form of configuration parameters used internally in the library. All of the executables are written to accept any of these configuration parameters, and they are all defined in the Configuration Reference.
- puppet. Stand alone Puppet Site Manifest Script evaluator. Parses, evaluates, and implements a Site Manifest locally.
- puppetmasterd. Puppet Site Manifest Server Daemon. Runs on each host serving/providing configurations to Puppet client hosts.
- puppetd. Puppet Client Host Configuration Daemon. Runs on each host whose configuration is managed by Puppet. Requests a Host Specific Manifest from a Puppet Manifest Server and implements it locally.
- puppetca. SSL Certificate Authority Server used for receiving cerification requests from puppet clients. Puppet Client Hosts are required to have their SSL certs signed by their Puppet Manifest Server's Authority before they can be authenticated and authorized to receive configurations.
- puppetdoc. Command line tool for printing Puppet Default and Local Type Library reference documentation. This is really only used internally.
- puppetrun. Command line tool for manually triggering Puppet configuration runs.
Type and Language Reference
The Puppet reference is split into the following pieces:
- Language Tutorial. A tutorial regarding all available language structures within Puppet. This reference presents the limits of and options for expressibility within Puppet.
- Function Reference
- Metaparameter Reference
- Type Reference. A reference of all available Puppet Types. The types defined in this reference represent the total ability of Puppet to manage your system -- if an object is not in this reference, then Puppet cannot currently manage it.
- Report Reference. A reference to all in-built report types.
- Glossary Of Terms
Configuration
Puppet configuration can be done through per-process configuration files (e.g., puppetd.conf) or on the command-line via switches. Much of the documentation is available via --help switches on each executable, but most of the useful switches are common to all executables and are thus documented in the Configuration Reference.
There are some guides already, though:
- Language Tutorial explores the Puppet language functions, with multiple examples
- File Serving Configuration
- Puppet Best Practice describes the best practice for configuration layouts, syntax, naming conventions, etc
- Puppet Modules are a way to organise manifests for reuse
- Puppet Templating with ERB
- Using Tags
- Using Multiple Environments describes how to be able to develop and test changed manifests without disturbing nodes running in production
- Virtual Resources
- Using Stored Configuration explains how to store configuration information in a database
- Exported Resources
- Certificates And Security
- Reports And Reporting
- LDAP Nodes explains how to store node information in LDAP
- Puppet Scalability describes common issues and solutions related to scaling a puppet deployment.
- UsingMongrel -- Using Mongrel or Passenger to scale Puppet instead of the internal Webrick server
- UsingMongrelPound -- Using Mongrel with the Pound web server
- UsingMongrelNginx -- Using Mongrel with the Nginx web server
- Using Passenger -- Using Passenger and Apache to scale Puppet
- Using Unicorn -- Using Unicorn to scale Puppet
Cookbook
The Cookbook is a repository of modules, 'recipes' as well as Puppet and Facter configuration snippets for achieving common tasks.
Module documentation
- PuppetManifestDocumentation - From Puppet 0.24.7 you can create automatic documentation for manifests and modules
Module sets
You can find a number of collections of Puppet modules for a variety of applications and operating systems on the Puppet Modules page.
Recipes
Extending Puppet
Puppet is also highly extensible. This section lists additional information that can help you create new types, providers and functions for Puppet. Also documented is the process for adding custom facts for Facter.
- Creating Custom Types -- Creating your own custom types
- Provider Development -- Documentation for developing providers
- Practical Types -- A practical example of type development
- Complete Resource Example -- A complete example of a type and provider
- API Documentation -- API documentation
- Adding Facts -- Adding custom facts to Facter
- Writing Your Own Functions -- Extending the Puppet language with your own server-side functions
- Plugins In Modules -- Method for distributing custom plug-ins via modules
- Recipes/DslHintsAndTips -- Initial page on how to use Puppet types from plain old Ruby.
- Writing Tests -- Writing RSpec tests for your Puppet contributions.
- Puppet's Development Lifecycle and ticket triage process
Related Applications
A number of applications that extend, support or supplement Puppet have been developed. These include:
- PuppetShow -- A Rails-application for viewing information about Puppet and configured hosts.
- The Foreman -- A Rails-application for managing server lifecycle.
integrates with Puppet (external nodes, PuppetCA, inventory and reporting) and provides dynamicly generated with Kickstart / jumpstart and preseed handsfree. - Viper -- A LDAP-based system for automated hosts installation, configuration and monitoring
- iClassify -- A node management tool for Puppet.
- PuppetView -- A light weight web-based Puppet log viewer written in PHP.
- Cft -- A configuration file tracker that uses Puppet at its base.
- Augeas -- Augeas is a configuration editing tool.
- Carpet -- Carpet is a combination of Puppet and Capistrano.
Additional Documentation
While the above links represent the standard, recommended documentation, there is additional information available for those who are interested.
Also available is Pulling Strings with Puppet - the first book on Puppet written by James Turnbull. Puppet is also mentioned in Chapter 19 (together with provisioning and bootstrapping) of Pro Linux System Administration by James Turnbull, Peter Lieverdink and Dennis Matotek.
- Frequently Asked Questions
- Branch Testing describes how to manage and test your configuration across multiple Puppet masters
- Puppet Internals describes how manifests are processed and used
- PuppetVsCfengine? -- How Cfengine compares to Puppet
- Transitioning From Cfengine -- Using the Cfengine module
- Puppet With Launchd -- A tutorial for starting puppet with Apple's new launchd.
- If you're considering contributing documentation, please take a look at the Documentation Standards.
- Mac OSX -- Describes recommendations when running Puppet on Mac OS X.
- Solaris -- Describes installing and running Puppet on Solaris.
- FreeBSD -- Tips for running Puppet on FreeBSD.
- Gentoo -- Tips for running Puppet on Gentoo
- Debian -- Tips for running Puppet on Debian
- Puppet Presentations -- Presentations about Puppet
- Puppet Best Practice -- How Puppet is used to manage a large network at Stanford
- Infrastructure Design Guidelines -- Another suggested best practice guide to managing infrastructure with Puppet
- Multiple Certificate Authorities -- How to setup multiple puppetmaster daemons with mutual trust.
- Puppet on Ubuntu Installation -- Walk through of how to get Puppet running on Ubuntu.
- A detailed example of using Puppet and how the way it modularizes configurations can be used for sharing 'system recipes'
- Puppet Tutorial
- Puppet Workshop -- A Puppet workshop designed to introduce new users to Puppet
- Scaling Puppet with distributed version control -- Using Git (or another DVCS) to distribute manifests, removing the need for a Puppet server
