-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (36 loc) · 1.31 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
dir = Dir.pwd
vagrant_dir = File.expand_path(File.dirname(__FILE__))
vagrant_name = File.basename(dir)
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "hgv.dev"
config.vm.network "private_network", ip: "192.168.150.20"
config.vm.network "forwarded_port", guest: 3306, host: 23306
# Give vm a name
config.vm.define vagrant_name do |v|
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.name = vagrant_name
end
config.vm.synced_folder "./hgv_data", "/hgv_data", owner: "www-data", group: "www-data", create: "true"
if defined? VagrantPlugins::HostsUpdater
config.hostsupdater.aliases = [
"hhvm.hgv.dev",
"php.hgv.dev",
"cache.hhvm.hgv.dev",
"cache.php.hgv.dev",
"admin.hgv.dev",
"xhprof.hgv.dev"
]
end
config.vm.provision "shell" do |s|
s.path = "bin/hgv-init.sh"
end
end