forked from kiyoad/trusty-docker-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
53 lines (45 loc) · 1.67 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
# -*- mode: 1uby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.define :controller do |conf|
conf.vm.hostname = "controller.local"
conf.vm.network :forwarded_port, guest: 80, host: 60080
conf.vm.network :private_network, ip: "11.0.0.11"
conf.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "4096" ]
end
end
config.vm.define :network do |conf|
conf.vm.hostname = "network.local"
conf.vm.network :private_network, ip: "11.0.0.21"
conf.vm.network :private_network, ip: "11.0.1.21"
conf.vm.network :public_network, ip: "0.0.0.0"
conf.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "512",
"--nicpromisc4", "allow-all"]
end
end
config.vm.define :compute1 do |conf|
conf.vm.hostname = "compute1.local"
conf.vm.network :private_network, ip: "11.0.0.31"
conf.vm.network :private_network, ip: "11.0.1.31"
conf.vm.network :private_network, ip: "11.0.9.31"
conf.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "2048" ]
end
end
config.vm.define :blockstorage1 do |conf|
conf.vm.hostname = "blockstorage1.local"
conf.vm.network :private_network, ip: "11.0.0.41"
conf.vm.network :private_network, ip: "11.0.9.41"
conf.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "512" ]
end
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/site.yml"
end
end