Puppetfile

The heart of the control repository is the Puppetfile. The Puppetfile acts as a list of Puppet modules to be imported on each run of r10k and deployed into a Puppet environment matching the branch name of the control repository. It allows us to bring in modules from two places: the Puppet Forge and remote Git repositories.

Pulling modules from the Puppet Forge can be written in shorthand, and at the very top of the file you can select a location to search for Forge modules. By default, the control repository will direct us to https://forge.puppet.com, which allows us to write the module we want to bring in in shorthand. Entering mod "puppetlabs/ntp" in the Puppetfile will pull in the latest version. By simply adding a version, ...

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.