blob: dee193951924043cc6f8226691178333ca1ef9e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# -*- 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
|