Chapter 5. Working with Files and Packages

"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization."—Gerald Weinberg

In this chapter we will cover the following topics:

  • Making quick edits to config files
  • Using Augeas to automatically edit config files
  • Building config files using snippets
  • Using ERB templates
  • Using array iteration in templates
  • Installing packages from a third-party repository
  • Setting up an APT package repository
  • Setting up a gem repository
  • Building packages automatically from source
  • Comparing package versions

Almost everything you'll do as a Puppet administrator involves either files or packages. They are the most important kinds of resources in Puppet and this chapter ...

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.