Book Image

Puppet Cookbook

Book Image

Puppet Cookbook

Overview of this book

Table of Contents (17 chapters)
Puppet Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
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