Recipe 45Configuring a Virtual Machine with Puppet

Problem

Our team is adding a few new developers, and as senior members of the team we’ve been asked by our boss to help on-board them. We’ve been using a virtual machine for our day-to-day work and want to share that with the new developers. It would be nice to allow them to reset their development virtual machine without snapshots.

Ingredients

Solution

We can use Puppet and Vagrant in combination to script our virtual-machine configuration in a replicable solution.

Vagrant is a tool for building development environments that we can use to easily interface with VirtualBox without having to use its GUI. We can grab an installer from Vagrant’s website.

Get Web Development Recipes, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.