Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 997 Bytes

README.md

File metadata and controls

57 lines (44 loc) · 997 Bytes

docker-puppet

Deploys a full puppet environment with:

  • Puppet master
  • PuppetDB
  • PostgreSQL
  • PuppetBoard

Certificate auto-signing is active by default.

It can be deactivated setting the AUTOSIGN=false enviroment variable in docker-compose.yml, but you need to remember to sign the certificate for PuppetDB on the first provisioning:

./puppetserver ca sign --certname puppetdb

Usage

Clone the repository

git clone [email protected]:miklinux/docker-puppet.git
cd docker-puppet

Start the environment

docker compose up -d

Check logs to ensure the environment is up and running

docker compose logs -f

Deploy puppet environment via r10k

./r10k deploy environment production -v

Other commands

List certificates:

./puppetserver ca list --all

Sign certificate:

./puppetserver ca sign --certname foo.example.com

Remove a node:

./puppet node clean foo.example.com
./puppet node deactivate foo.example.com