-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
47 lines (35 loc) · 1.43 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
# -*- mode: ruby -*-
# 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.hostname = "phalcon-vm"
config.ssh.insert_key = false
# Support for Parallels provider for Vagrant
# See: http://parallels.github.io/vagrant-parallels/docs/
config.vm.provider "parallels" do |v, override|
# v.update_guest_tools = true
v.memory = 1024
override.vm.box = "parallels/ubuntu-14.04"
end
# Customization for Virtualbox (default provider)
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
# Comment the bottom two lines to disable muli-core in the VM
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
if Vagrant.has_plugin?("hostsupdater")
config.hostsupdater.aliases = ["local.furry.digital"]
end
# Disabled for Windows 10 + VirtualBox
# config.vm.network "private_network", ip: "192.168.33.120"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.synced_folder ".", "/vagrant/"
config.vm.synced_folder ".", "/var/www/vagrant/", :owner => 'www-data', :group => 'www-data'
config.vm.provision "shell" do |s|
s.path = "util/vagrant_init.sh"
end
end