forked from smacleod/rb-vm-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
57 lines (45 loc) · 1.78 KB
/
Vagrantfile
File metadata and controls
57 lines (45 loc) · 1.78 KB
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
54
55
56
57
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Configure VMWare Fusion specific behavior
config.vm.provider :vmware_fusion do |vmf, override|
override.vm.box = "precise64_vmware"
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
# Configure VMWare Workstation specific behavior
config.vm.provider :vmware_workstation do |vmf, override|
override.vm.box = "precise64_vmware"
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
# Configure Virtual Box specific behavior
config.vm.provider :virtualbox do |vb, override|
override.vm.box = "precise64"
override.vm.box_url = "http://files.vagrantup.com/precise64.box"
# vb.name = "reviewboard_dev"
# Don't boot with headless mode
# vb.gui = true
# Use VBoxManage to customize the VM. For example to change memory:
# b.customize ["modifyvm", :id, "--memory", "1024"]
end
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine.
config.vm.network :forwarded_port, guest: 8080, host: 8080
# config.vm.network :private_network, ip: "192.168.50.4"
# Shared folders
config.vm.synced_folder "src/", "/src" #, :nfs => true
# Provisioning
# Update the version of Chef that comes with the box.
# (10.12.0 -> 11.4.4)
config.vm.provision :shell, :path => "sh/chef-upgrade.sh"
# Provision the development environment. If developing
# Review Bot as well, the reviewboard recipe should be
# commented out, and the reviewbot recipe should be
# uncommented.
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "chef/cookbooks"
chef.run_list = [
"recipe[reviewboard]",
#"recipe[reviewbot]",
]
end
end