Multi-machine Vagrantfile with Shorter, Cleaner Syntax Using JSON and Loops
Published November 13, 2014
In a previous post, I provided an example Vagrantfile to create multiple virtual machines. That Vagrantfile works perfectly fine, but it contains a lot of redundant code. Because a Vagrantfile is written in Ruby, it is possible to create a Vagrantfile with shorter, cleaner syntax using JSON and loops.