-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
63 lines (56 loc) · 1.63 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2" # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Handle local proxy settings
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end
config.vm.synced_folder "~/", "/vagrant_home"
# One vm just for devstack (to access the UI)
config.vm.define "devstack" do |ds|
ds.vm.hostname = "devstack"
ds.vm.box = "monasca/devstack"
ds.vm.network :private_network, ip: "192.168.10.5"
ds.vm.provider "virtualbox" do |vb|
vb.memory = 4096
vb.cpus = 4
end
end
# Vms for monasca
config.vm.define "monasca1" do |mm|
mm.vm.hostname = 'monasca1'
mm.vm.box = "ubuntu/trusty64"
mm.vm.network :private_network, ip: "192.168.10.6"
mm.vm.provider "virtualbox" do |vb|
vb.memory = 6144
vb.cpus = 4
end
end
config.vm.define "monasca2" do |mm|
mm.vm.hostname = 'monasca2'
mm.vm.box = "ubuntu/trusty64"
mm.vm.network :private_network, ip: "192.168.10.7"
mm.vm.provider "virtualbox" do |vb|
vb.memory = 6144
vb.cpus = 4
end
end
config.vm.define "monasca3" do |mm|
mm.vm.hostname = 'monasca3'
mm.vm.box = "ubuntu/trusty64"
mm.vm.network :private_network, ip: "192.168.10.8"
mm.vm.provider "virtualbox" do |vb|
vb.memory = 6144
vb.cpus = 4
end
end
end