Book Image

Puppet Cookbook - Third Edition - Third Edition

Book Image

Puppet Cookbook - Third Edition - Third Edition

Overview of this book

This book is for anyone who builds and administers servers, especially in a web operations context. It requires some experience of Linux systems administration, including familiarity with the command line, file system, and text editing. No programming experience is required.
Table of Contents (12 chapters)
11
Index

Chapter 1. Puppet Language and Style

 

"Computer language design is just like a stroll in the park. Jurassic Park, that is."

 
 --Larry Wall

In this chapter, we will cover the following recipes:

  • Adding a resource to a node
  • Using Facter to describe a node
  • Installing a package before starting a service
  • Installing, configuring, and starting a service
  • Using community Puppet style
  • Creating a manifest
  • Checking your manifests with Puppet-lint
  • Using modules
  • Using standard naming conventions
  • Using inline templates
  • Iterating over multiple items
  • Writing powerful conditional statements
  • Using regular expressions in if statements
  • Using selectors and case statements
  • Using the in operator
  • Using regular expression substitutions
  • Using the future parser