-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
54 lines (47 loc) · 1.69 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
47
48
49
50
51
52
53
54
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.define "lxd1" do |lxd1|
lxd1.vm.hostname = "lxd1"
lxd1.vm.box = "ubuntu/xenial64"
lxd1.vm.network "private_network", type: "dhcp"
#vm1.vm.synced_folder "/Users/pt.go-jekindonesia/lxd1", "/home"
lxd1.vm.provider "virtualbox" do |vb|
vb.name = "lxd1"
# Display the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = "512"
end
end
config.vm.define "lxd2" do |lxd2|
lxd2.vm.hostname = "lxd2"
lxd2.vm.box = "ubuntu/xenial64"
lxd2.vm.network "private_network", type: "dhcp"
#vm2.vm.synced_folder "/Users/pt.go-jekindonesia/lxd2", "/home"
lxd2.vm.provider "virtualbox" do |vb|
vb.name = "lxd2"
# Display the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = "512"
end
end
config.vm.define "scheduler" do |scheduler|
scheduler.vm.hostname = "scheduler"
scheduler.vm.box = "ubuntu/xenial64"
scheduler.vm.network "private_network", type: "dhcp"
scheduler.vm.network "forwarded_port", host: 5433, guest: 5432
scheduler.vm.provider "virtualbox" do |vb|
vb.name = "metric-collector"
# Display the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
end
end