Module creation guide

This guide explains how to create a module. For detailed documentation see: module.yml.

Create a new source module

1pip install cookiecutter
2cookiecutter gh:inmanta/inmanta-module-template

Note

The cookiecutter template also sets up git for the new module. This is a best practice to version control your infrastructure code.

Inside the module the compiler expects a module.yml file that defines metadata about the module.

module.yml provides an overview about the supported metadata attributes.

An example module.yml could be:

1license: Apache 2.0
2name: ip
3source: git@github.com:inmanta/ip
4version: 0.1.15
5requires:
6    - net ~= 0.2.4
7    - std >1.0 <2.5