This project provides a demo environment for running a Puppet master and several agents.
This tool is built on top of a few different technologies, mainly VirtualBox and Vagrant, so you'll need to ensure that those are present before you continue. You'll also need to have the Git tools installed to checkout the repository.
- Install Virtual Box.
- Install Vagrant.
- Install the required Vagrant plugins:
$ vagrant plugin install oscar
$ vagrant plugin install vagrant-hosts
$ vagrant pluing install vagrant-reload
$ vagrant plugin install vagrant-multiprovider-snap
(optional, but you won't have snapshot functionality if you don't install it)
In addition, keep in mind the raw cpu and memory requirements. The master is 2CPU and 8G of memory.
After getting the pre-reqs setup, run scripts/init.sh. This will stand up the master and all configured agents. For all agents, the will be snapshotted after provisioning and then shutdown. The master will be left running. To complete the setup run vagrant hosts list
and update your hosts file.
The new master is already fully deployed, running with a hostname of master.inf.puppet.vm
. In additon, an internal Git server is running on the new master.
SSH:
vagrant ssh /master/
Enterprise Console:
user
: adminpassword
: puppetlabs
Git Server:
user
: puppetpassword
: puppetlabs
Once the master is up and running, you'll need to add your license key to the master. Optionally, login to the Git server (here) and update the puppet users ssh keys with your own public so that you can make updates to the control-repo. Code manager deployments will not work successfully until you add a license key because there are some PE only modules in use.