# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "ubuntu/xenial64" # Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network "private_network", ip: "192.168.33.10" config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: vb.memory = "4096" vb.cpus = "1" end config.vm.define "master" do |master| master.vm.box = "ubuntu/xenial64" master.vm.provision "shell", path: "master.sh" master.vm.network "private_network", ip: "192.168.33.10", virtualbox__intnet: "internal" end config.vm.define "slave1" do |slave1| slave1.vm.box = "ubuntu/xenial64" slave1.vm.provision "shell", path: "slave.sh slave1" slave1.vm.network "private_network", ip: "192.168.33.11", virtualbox__intnet: "internal" end end