Chapter 4. Writing Better Manifests

"There are only two kinds of programming languages: those people always bitch about and those nobody uses."—Bjarne Stroustrup

In this chapter we will cover the following topics:

  • Using arrays of resources
  • Using define resources
  • Using dependencies
  • Using node inheritance
  • Using class inheritance and overriding
  • Passing parameters to classes
  • Writing reusable, cross-platform manifests
  • Getting information from the environment
  • Importing dynamic information
  • Importing data from CSV files
  • Passing arguments to shell commands

Your Puppet manifest is the living documentation for your entire infrastructure. Keeping it tidy and well organized is a great way to make it easier to maintain and understand. Puppet gives you a number of tools ...

Get Puppet 2.7 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.