Simple docker setup for testing puppet modules
docker compose up -d# Daemon that executes the agent every 15s
./run_puppet_agent.shPuppet module dependencies should be added to the Puppetfile. Modules will be installed when you launch the ./run_puppet_agent.sh daemon.
- The
./modulesdirectory is the source for all custom puppet modules.- These are mapped into
/etc/puppetlabs/code/modulesin the puppet container. - Modules installed via the
Puppetfileare installed in/etc/puppetlabs/code/environments/production/modules
- These are mapped into
- Changes made are reflected instantly.
modules
โโโ my_module
โโโ data
โ โโโ common.yaml
โโโ files
โ โโโ sample.json
โโโ hiera.yaml
โโโ lib
โ โโโ facter
โ โโโ puppet
โโโ manifests
โ โโโ file_loop.pp
โ โโโ init.pp
โโโ templates
โโโ sample_template.json.epp
The entrypoint(site.pp) contains our custom modules, therefore executing them.
- The
manifestsdirectory is mapped into/etc/puppetlabs/code/environments/production/manifestsin the puppet container.
manifests
โโโ site.pp
