-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
36 lines (30 loc) · 1.15 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
Vagrant.configure("2") do |config|
def Kernel.is_windows?
# Detect if we are running on Windows
processor, platform, *rest = RUBY_PLATFORM.split("-")
platform == 'mingw32'
end
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.hostname = "local.dev"
config.vm.network "forwarded_port", guest: 22, host: 10122
config.vm.network "forwarded_port", guest: 80, host: 10180
config.vm.network "private_network", ip: "10.0.1.2"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 512]
vb.memory = 512
vb.cpus = 1
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "25"]
end
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "local.dev/manifests"
puppet.manifest_file = "default.pp"
end
if Kernel.is_windows?
config.vm.synced_folder "./app", "/media/app" #, type: "smb"
config.vm.synced_folder "./local.dev/database", "/media/database" #, type: "smb"
else
config.vm.synced_folder "./app", "/media/app", type: "nfs"
config.vm.synced_folder "./local.dev/database", "/media/database", type: "nfs"
end
end