Control repository

Our control repository, as described in the previous chapter, is nothing more than a Git code repository. The only unique quality that you need to keep in mind when working with it, is that branch names correspond to Puppet environments. If you create a Git branch named feature and deploy the code, the Puppet Master will deploy that code to /etc/puppetlabs/code/environments/feature. Generally, the Master branch is replaced with another protected branch named production in the control repository, so that agents can check in to a production branch by default.

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.