-
Notifications
You must be signed in to change notification settings - Fork 8
/
Vagrantfile
41 lines (33 loc) · 1.2 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
# -*- 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|
# Configure The Box
config.vm.box = "chef/ubuntu-14.10"
config.vm.hostname = "homestead"
# Don't Replace The Default Key https://github.com/mitchellh/vagrant/pull/4707
config.ssh.insert_key = false
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.provider :vmware_fusion do |v|
v.memory = 2048
v.cpus = 2
end
# Configure Port Forwarding
config.vm.network "forwarded_port", guest: 80, host: 8080
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.provision :ansible do |ansible|
ansible.verbose = "v"
ansible.playbook = "site.yml"
ansible.raw_arguments = ["--diff"]
ansible.groups = {
"local" => ["default"]
}
end
end