Forge Home


Manages Puppet Labs training classroom environments


6,202 latest version

1.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.16 (latest)
  • 0.0.15
  • 0.0.14
  • 0.0.13
  • 0.0.12
  • 0.0.11
  • 0.0.10
  • 0.0.9
  • 0.0.8
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Sep 25th 2018
This version is compatible with:
  • Puppet Enterprise 3.7.x
  • Puppet 3.x

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'pltraining-dockeragent', '0.0.16'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add pltraining-dockeragent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install pltraining-dockeragent --version 0.0.16

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



pltraining/dockeragent — version 0.0.16 Sep 25th 2018


This module is used to configure simple Dockerized agent nodes for the classroom environment in Puppet Labs training courses. Unless you are an instructor, this is probably not the module you are looking for. It makes certain assumptions about the environment and is only flexible within the design specs of our training courses.

That being said, you're welcome to poke through it and see how we set things up.


include dockeragent

# This will manage 5 containerized agents.
range(1,5).each |$n| {
    dockeragent::node { "agent${n}.${::fqdn}":
        ports => ["${n}0080:80"],

Example workloads

One thing that containerized agents are sometimes used for is simulating the load of running an environment against a Puppet master. To facilitate that, we've included a handful of very simple sample testing profiles. They don't really do anything useful other than provide the master with a reasonable, if small, catalog to compile.

node default {
  include dockeragent::sample::wordpress
  include dockeragent::sample::vhosts

The modules used by these classes are not set as dependencies, so they will not be installed automatically by puppet module install. If you want to use them, you'll want to install them separately:

  • Requirements for dockeragent::sample::wordpress:
    • hunner/wordpress
    • puppetlabs/apache
    • puppetlabs/mysql
  • Requirements for dockeragent::sample::vhosts:
    • puppetlabs/apache
    • Future parser or Puppet 4.x

Other projects:

For another take on the idea of load testing the Puppet master, see