This repository has been archived by the owner on Mar 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
53 lines (40 loc) · 1.53 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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |vconfig|
vconfig.vm.define :HabitatBase do |config|
# Configure The Box
config.vm.box = "bento/ubuntu-14.04"
config.vm.hostname = "habitat"
#config.vm.box_check_update = false
# Don't Replace The Default Key https://github.com/mitchellh/vagrant/pull/4707
config.ssh.insert_key = false
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
# Display console for debugging
# vb.gui = true
end
config.vm.provider :vmware_fusion do |v|
v.memory = 2048
v.cpus = 2
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.enable :apt
config.cache.enable :composer
end
# Configure Port Forwarding
config.vm.network "forwarded_port", guest: 80, host: 8000
config.vm.network "forwarded_port", guest: 3306, host: 33060
config.vm.network "forwarded_port", guest: 5432, host: 54320
# config.vm.network "forwarded_port", guest: 35729, host: 35729
# config.vm.synced_folder "./", "/vagrant", disabled: true
# Run The Base Provisioning Script
config.vm.provision "shell", path: "./scripts/update.sh"
# config.vm.provision :reload
# config.vm.provision "shell", path: "./scripts/vmware_tools.sh"
# config.vm.provision :reload
config.vm.provision "shell", path: "./scripts/provision.sh"
end
end