-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
58 lines (44 loc) · 1.96 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define :db do |db_config|
db_config.vm.box = "precise64"
db_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
db_config.vm.network :forwarded_port, guest: 8983, host: 8984
db_config.vm.network :forwarded_port, guest: 5432, host: 5434
db_config.vm.network :forwarded_port, guest: 5000, host: 5051
db_config.vm.network :private_network, ip: "192.168.33.10"
db_config.vm.provision :ansible do |ansible|
ansible.playbook = "provisioning/dbservers.yml"
#ansible.raw_arguments = "--check"
ansible.inventory_path = "vagrant_ansible_inventory_db"
ansible.verbose = "v"
end
end
config.vm.define :storage do |storage_config|
storage_config.vm.box = "precise64"
storage_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
storage_config.vm.network :forwarded_port, guest: 111, host: 1110
storage_config.vm.network :forwarded_port, guest: 2049, host: 2050
storage_config.vm.network :private_network, ip: "192.168.33.30"
storage_config.vm.provision :ansible do |ansible|
ansible.playbook = "provisioning/storageservers.yml"
#ansible.raw_arguments = "--check"
ansible.inventory_path = "vagrant_ansible_inventory_storage"
ansible.verbose = "v"
end
end
config.vm.define :web do |web_config|
web_config.vm.box = "precise64"
web_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
web_config.vm.network :forwarded_port, guest: 80, host: 8080
web_config.vm.network :forwarded_port, guest: 8080, host: 8081
web_config.vm.network :private_network, ip: "192.168.33.20"
web_config.vm.provision :ansible do |ansible|
ansible.playbook = "provisioning/webservers.yml"
#ansible.raw_arguments = "--check"
ansible.inventory_path = "vagrant_ansible_inventory_web"
ansible.verbose = "v"
end
end
end