-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (35 loc) · 1.18 KB
/
Vagrantfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<-SCRIPT
cd /home/vagrant/
git clone https://github.com/NikitasTsiris/dev-cluster.git
git clone https://github.com/NikitasTsiris/DeathStarBench.git
SCRIPT
Vagrant.configure("2") do |config|
config.vm.define "dev-vm-master" do |node|
node.vm.box = "generic/ubuntu2004"
node.vm.box_check_update = false
node.vm.network "private_network" , ip: "192.168.121.220"
node.vm.hostname = "dev-cluster-master"
node.vm.provider :libvirt do |v|
v.cpu_mode = "host-passthrough"
v.memory = 6144
v.nested = true
v.cpus = 6
end
config.vm.provision "shell", inline: $script, privileged: false
end
config.vm.define "dev-vm-worker" do |node|
node.vm.box = "generic/ubuntu2004"
node.vm.box_check_update = false
node.vm.network "private_network" , ip: "192.168.121.221"
node.vm.hostname = "dev-cluster-worker"
node.vm.provider :libvirt do |v|
v.cpu_mode = "host-passthrough"
v.memory = 4096
v.nested = true
v.cpus = 4
end
config.vm.provision "shell", inline: $script, privileged: false
end
end