Cloning the control repository

The first step starts like the last one: cloning the Git repository. One thing to remember about Puppet environments is that a branch of this repository corresponds to a Puppet environment. Most users of Puppet don't have a master environment, but rather, the production environment that Puppet places nodes into by default. If your organization has any environments prior to production, as many do, you'll want to make sure that you begin on the existing branch before creating a new branch. The git checkout -b command creates a new branch, starting from the branch that you are currently on. The following are the steps for creating a new environment, modeled after an existing environment:

  1. Make a copy of the control ...

Get Mastering Puppet 5 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.