MPI – Create a new module

Written by Ger Apeldoorn on. Posted in Manageable Puppet Infrastructure, Sysadmin


In the MPI, we have a separate repository in Gerrit for each custom-made module.

To create a new module, first set up a new Git repo in Gerrit.

Create Gerrit repo

  • Naming convention: puppet-[modulename]
  • Make sure that you inherit rights from PuppetModuleParent and create an initial commit.
  • Selection_025

  • Then, allow only fast-forward(1) and Save(2).

Add the module to Puppetfile

Don't forget to commit this change!

Clone the empty repo to your own environment

Setup Git-Flow

You can now add & commit files using the git-flow workflow.