-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.multiple
48 lines (41 loc) · 1.42 KB
/
Vagrantfile.multiple
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :db do |db|
db.vm.box = "ubuntu/trusty64"
db.vm.provider "virtualbox" do |vb|
vb.memory = 384
end
db.vm.network :private_network, ip: "192.168.50.6"
db.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/dbservers.yml"
ansible.inventory_path = "ansible/development.multi"
ansible.limit = "db"
end
end
config.vm.define :app do |app|
app.vm.box = "ubuntu/trusty64"
app.vm.provider "virtualbox" do |vb|
vb.memory = 384
end
app.vm.network :private_network, ip: "192.168.50.5"
app.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/appservers.yml"
ansible.inventory_path = "ansible/development.multi"
ansible.limit = "app"
end
end
config.vm.define :web do |web|
web.vm.box = "ubuntu/trusty64"
web.vm.provider "virtualbox" do |vb|
vb.memory = 384
end
web.vm.network :private_network, ip: "192.168.50.4"
web.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/webservers.yml"
ansible.inventory_path = "ansible/development.multi"
ansible.limit = "web"
end
end
end