A set of examples of how to use Vagrant.
getting started
You'll need a few things to get started.
- You'll need to clone this repo.
- You'll need a fairly recent version of Virtualbox. >=4.2.0
- You'll need a fairly recent version of Vagrant. >=1.5.1
Once you've installed Virtualbox and Vagrant you can test your setup by:
- changing into this repo and running
vagrant up. Note the first run will take a lot longer as it has to download the base image you'll be using for the rest of this tutorial. - You can ssh into the box with
vagrant sshand test networkingping google.comYou can test passwordless sudo withsudo id. - You'll need one more thing downloaded and installed for some of these exercises:
vagrant plugin install vagrant-hosts - Lastly you can
exitout of the ssh session and free up your resources withvagrant destroy -f
what's here
In this there are a couple of Vagrant files to show you some of the basics. These will get you from a clean image to working with configuration management, specifically puppet in this case. There is also an example program that we can test, setup an init script and package.