Puppet Documentation
TracNav menu
-
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
- Glossary OfTerms
- Style Guide
- Puppet Recipes
- Facter Recipes
- Recipe Requests
- Testing Guide
- Module Organisation
- Puppet Executables
- Puppet Internals
-
References and Advanced Topics
- Type Reference
- Function Reference
- Configuration Reference
- Network Reference
- Report Reference
- Creating Custom Types
- Writing Your Own Functions
Table of Contents
- Introduction to Puppet
- Command Line Executables
- Type and Language Reference
- Configuration
- Cookbook
- Extending Puppet
- 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 UPGRADE page which details major feature and language changes between versions.
There is also a guide for using Puppet from source, and one for testing Puppet, 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.
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
- 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 OfTerms
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. A simple description of how the Puppet language functions, with multiple examples.
- Resources And Relationships are the building blocks of the Puppet configuration language.
- 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
- Virtual Resources
- Exported Resources
- Certificates And Security
- Reports And Reporting
- LDAP Nodes explains how to store node information in LDAP
Cookbook
The Cookbook is a repository of modules, 'recipes' as well as Puppet and Facter configuration snippets for achieving common tasks.
Module sets
- Complete Configuration - a complete set of modules and configuration from Puppet user David Schmitt
- Lab42Infrastructure - another module and configuration set provided by Lab42
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 InModules -- Method for distributing custom plug-ins via modules
Additional Documentation
While the above links represent the standard, recommended documentation, there is additional information available for those who are interested:
- 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
- Puppet's Development Lifecycle and ticket triage process
- 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.
- Documenting Manifests -- A proposal for a standard for manifest documentation.
- A detailed example of using Puppet and how the way it modularizes configurations can be used for sharing 'system recipes'
- If you're considering contributing documentation, please take a look at the Documentation Standards.
- Puppet Scalability describes common issues and solutions related to scaling a puppet deployment.
- PuppetMacOSX descibes recommendations when running Puppet on a Mac OS X node.
- PuppetSolaris descibes installing and running Puppet on a Solaris node.
- FreeBSD -- Tips for running Puppet on FreeBSD.
- Gentoo -- Tips for running Puppet on Gentoo
- Puppet Presentations: Luke Kanies about Puppet at BayLISA
- Stanford Puppet Best Practices?: how Puppet is used to manage a large network at Stanford
- Multiple Certificate Authorities: How to setup multiple puppetmaster daemons with mutual trust.
- Scripts using Puppet
- Puppet on Ubuntu Installation: Walk through of how to get Puppet running on Ubuntu.
- DslHintsAndTips -- initial page on how to use Puppet types from plain old Ruby.
- UsingStoredConfiguration -- Using stored configurations.
- WritingTests -- Writing RSpec tests for your Puppet contributions.