This Vagrant environment is a fork of puppet-debugging-kit that automatically creates a Puppet infrastructure with:
- A MoM with a PostgreSQL database
- Two PuppetDB servers behind an HAProxy load balancer
- One separate compile master using the load balanced PuppetDB VIP
A shared certificate is generated and shared amongst the PuppetDB servers to avoid issues related to SERVER-207.
This environment is created as an example of how to configure multiple PuppetDB instances when load needs to be distributed. It should be used as a reference, and not copied completely in a production deployment.
bundle install
bundle exec vagrant up
- Run
puppet agent -t
on themom.vm
- Sign the compile master cert with
--allow-dns-alt-names
on the MoM - Run
puppet agent -t
on each server - Add puppet.vm to the agent's host file and run
puppet agent -t
. Verify from the PuppetDB logs that one of the load balanced PuppetDB servers is receiving the commands instead of the MoM.