Vagrant – Single/Multi box environments, i.e. “” verses “config.vm.define”

So far we have come across: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = “2” Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| =”puppetlabs/ubuntu-14.04-32-nocm” end Using “” means that your vagrantfile is limited to be able to only spin up a single box. However instead of “” we could use […]

Read More

Vagrant – Naming your VMs

You can assign a name to your VM, both in what’s displayed by the vagrant output, and also on the Oracle Virtualbox gui. config.vm.define :puppetmaster-abc do |puppetmaster_config| # this names it for vagrant puppetmaster_config.vm.hostname = “” puppetmaster_config.vm.provider “virtualbox” do |v, override| = “puppetmaster-def” # this names it for oracle […]

Read More

Vagrant – Plugins

vagrant plugin install vagrant-hosts vagrant plugin install vagrant-proxyconf Behind the scenes these plugins get installed in: C:\Users\{username}\.vagrant.d Or: C:\.vagrant.d (that I think is if you are running git bash as admin user)

Read More

Vagrant – Configuring your VM

So far we succesfully started up our machine, but we encountered a few problems. The vagrantfile holds all the configurations of our vm. It holds this data in the form of an object that’s been instantiated from the config.vm class. This section has number attributes that you can set, this […]

Read More

Vagrant – Provisioning your first VM

1. Open up git-bash terminal and create a folder that will contain all your personal vagrant files, in my case I have created a top level folder called “vagrant”: mkdir c:\vagrant\centos Note: I also create the centos directory in order to keep all my vagrant vms organised. 2. cd into […]

Read More

Vagrant – Installing Vagrant on Windows

Setting up Vagrant on Windows You can install virtualbox and vagrant from the powershell command-line with the help of Powershell’s community repository, Chocolatey: 1. Open up a powershell terminal (in admin mode) 2. Run the following to connect to the chocolatey library (you can skip this step if the “choco” […]

Read More