Chapter 2. 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:

  • Using community Puppet style
  • 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