Puppet Roles

build-puppet-module

An Ansible role to build a Puppet module using the Puppet Development Kit (PDK).

Note

This role requires installed Ruby, Ruby development and build tools (gcc/g++ and make) packages, they can be installed using the ensure-pdk-dependencies role.

Role Variables

puppet_module_chdir
Default: {{ zuul.project.src_dir }}

The folder to switch into in order to build the Puppet module

ensure-pdk-dependencies

Ensure dependencies for Puppet Development Kit are installed

This role installs all dependencies for Puppet Development Kit (PDK) so that puppet modules can be build with the PDK and published to the forge.

fetch-puppet-module-output

Collect output from a puppet module build

upload-forge

Upload puppet module tarball to a Forge server

This role requires the python requests module to be installed where Ansible is executing this role.

Role Variables

forge_url
Default: https://forgeapi.puppet.com

The URL to the Puppet Forge API.

forge_username

Username to use to log in to Puppet Forge.

forge_password

Password to use to log in to Puppet Forge.

forge_tarball

Absolute path to the module tarball that should be uploaded.