-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
56 lines (45 loc) · 1.5 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
Vagrant.configure(2) do |config|
config.vm.define "deploy" do |server|
server.vm.box = "bento/centos-7.1"
server.vm.network "private_network", ip: "192.168.33.70"
if defined?(server.vbguest)
server.vbguest.auto_update = false
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.gui = false
vb.memory = 1024
vb.cpus = 2
end
server.vm.provision "shell", :path => "provision.sh"
end
config.vm.define "web" do |server|
server.vm.box = "bento/centos-7.1"
server.vm.network "private_network", ip: "192.168.33.71"
if defined?(server.vbguest)
server.vbguest.auto_update = false
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.gui = false
vb.memory = 1024
vb.cpus = 2
end
end
config.vm.define "db" do |server|
server.vm.box = "bento/centos-7.1"
server.vm.network "private_network", ip: "192.168.33.72"
if defined?(server.vbguest)
server.vbguest.auto_update = false
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.gui = false
vb.memory = 1024
vb.cpus = 2
end
end
end