Summary
In this chapter, we had a whirlwind tour of Puppet and explored the various ways in which we could use it to provision a server for our projects. We installed software with the Package
resource, managed cron jobs with the Cron
resource, managed users and groups with the User
and Group
resources, and ran commands with the Exec
resource. To manage execution order and dependency relationships with Puppet, we looked at using Require
, Subscribe
, Notify
, and Refreshonly
. We looked at how modules, classes, and stages work as well as how to use class parameters to configure reusable Puppet code. Finally, we looked at how to use Puppet to provision a machine.
In the next chapter, we will take a look at Ansible, another provisioning tool that has support built into Vagrant.