Installing and using r10k

Generally, if you have Puppet Enterprise, you should use Code Manager instead of r10k. If you are a Puppet open source user, or if your environment is a mix of both open source and Enterprise nodes, consider a direct installation of r10k. There is a Puppet module available on the Forge that installs r10k on an existing Puppet Master by Vox Pupuli. It can be found at https://forge.puppet.com/puppet/r10k.

Once r10k is installed, an environment can be deployed by running r10k deploy environment <branch> -p on each master as the root user, or as a user with sudo access. Often, when r10k is used in place of Code Manager, a CI/CD system is used to automate the deployment over r10k.

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.