Chapter 2. Puppet Infrastructure


"Computers in the future may have as few as 1,000 vacuum tubes and weigh only 1.5 tons."

 --Popular Mechanics, 1949

In this chapter, we will cover:

  • Installing Puppet
  • Managing your manifests with Git
  • Creating a decentralized Puppet architecture
  • Writing a papply script
  • Running Puppet from cron
  • Bootstrapping Puppet with bash
  • Creating a centralized Puppet infrastructure
  • Creating certificates with multiple DNS names
  • Running Puppet from passenger
  • Setting up the environment
  • Configuring PuppetDB
  • Configuring Hiera
  • Setting-node specific data with Hiera
  • Storing secret data with hiera-gpg
  • Using MessagePack serialization
  • Automatic syntax checking with Git hooks
  • Pushing code around with Git
  • Managing environments with Git


In this chapter, ...

Get DevOps: Puppet, Docker, and Kubernetes now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.