forked from RefugeRestrooms/refugerestrooms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
57 lines (47 loc) · 1.95 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
54
55
56
57
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOXNAME = "refugerestrooms"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Ubuntu 14.04 base box
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = BOXNAME
#config.vm.box_download_checksum =
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Access the rails server at localhost:3000
config.vm.network "forwarded_port", guest: 3000, host: 3000
# Use this if you need to copy files via scp or something
# config.vm.network "private_network", ip: "192.168.33.10"
# If true, then any SSH connections made will enable agent forwarding.
# Default value: false
# config.ssh.forward_agent = true
# Share refuge repo in vagrant home folder
config.vm.synced_folder ".", "/vagrant/refugerestrooms"
# View virtualbox provider docs for more options
config.vm.provider "virtualbox" do |vb|
vb.name = BOXNAME
# Uncomment this if you need more than default of 512
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# If this gets bigger I can make it into a chef run
# mi-wood
config.vm.provision "shell", path: "setup/setup_vagrant.sh", privileged: false
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
#
# config.vm.provision "chef_solo" do |chef|
# chef.cookbooks_path = "../my-recipes/cookbooks"
# chef.roles_path = "../my-recipes/roles"
# chef.data_bags_path = "../my-recipes/data_bags"
# chef.add_recipe "mysql"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
# chef.json = { mysql_password: "foo" }
# end
end