-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
71 lines (59 loc) · 2.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
(1..2).each do |i|
config.vm.define "vector_tiler0#{i}" do |vector_tiler|
vector_tiler.vm.box = "nrel/CentOS-6.5-x86_64"
vector_tiler.vm.hostname = "vector-tile0#{i}"
vector_tiler.vm.network "private_network", ip: "192.168.33.2#{i}"
vector_tiler.vm.network "forwarded_port", guest: 8080, host: "888#{i}".to_i
vector_tiler.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 1
end
end
end
config.vm.define "db" do |db|
db.vm.box = "nrel/CentOS-6.5-x86_64"
db.vm.hostname = "db"
db.vm.network "private_network", ip: "192.168.33.30"
db.vm.network "forwarded_port", guest: 9200, host: 9292
db.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 1
end
end
config.vm.define "monitor" do |monitor|
monitor.vm.box = "nrel/CentOS-6.5-x86_64"
monitor.vm.hostname = "monitor"
monitor.vm.network "private_network", ip: "192.168.33.40"
monitor.vm.network "forwarded_port", guest: 5601, host: 15601
monitor.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
end
end
config.vm.define "load_balancer" do |load_balancer|
load_balancer.vm.box = "nrel/CentOS-6.5-x86_64"
load_balancer.vm.hostname = "load-balancer"
load_balancer.vm.network "private_network", ip: "192.168.33.50"
load_balancer.vm.network "forwarded_port", guest: 8080, host: 8080
load_balancer.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
end
end
config.vm.define "controller", primary: true do |controller|
controller.vm.box = "ubuntu/trusty64"
controller.vm.hostname = "controller"
controller.vm.network "private_network", ip: "192.168.33.10"
controller.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
end
controller.vm.provision "shell", path: "controller-provision.sh"
end
config.push.define "atlas" do |push|
push.app = "lmrakai/vector_tiler"
end
end