Declare Git repositories in the Puppetfile

You can declare your own modules, modules that aren't from the Forge, data, or other non-module content that you want to install from Git repositories.

  1. To specify environment content from a Git repository, use the mod directive and specify the content name as a string. Then and use :git to specify the repository location, and :branch to reference a branch. For example:
    mod 'apache',
        :git => 'https://github.com/puppetlabs/puppetlabs-apache'
        :branch => '<BRANCH_NAME>'
  2. Optional: Specify additional options or alternative configurations, if needed:
  3. Save and commit your changes.