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 3. Writing Better Manifests

 

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight."

 
 --Bill Gates

In this chapter, we will cover:

  • Using arrays of resources

  • Using resource defaults

  • Using defined types

  • Using tags

  • Using run stages

  • Using roles and profiles

  • Passing parameters to classes

  • Passing parameters from Hiera

  • Writing reusable, cross-platform manifests

  • Getting information about the environment

  • Importing dynamic information

  • Passing arguments to shell commands