forked from lodge/lodge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
64 lines (52 loc) · 1.61 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
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
vb.cpus = 2
end
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [ ".env", ".git/", ".bundle/", "config/database.yml", "vendor/bundle/", "tmp/", "log/" ]
# If you'd like to assign private (Host-only) IP address, uncomment the below.
# config.vm.network "private_network", type: "dhcp"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
chef.add_recipe "timezone-ii"
chef.add_recipe "apt"
chef.add_recipe "nodejs"
chef.add_recipe "ruby_build"
chef.add_recipe "rbenv::user"
chef.add_recipe "rbenv::vagrant"
chef.add_recipe "vim"
chef.add_recipe "postfix"
chef.add_recipe "mysql::server"
chef.add_recipe "mysql::client"
chef.add_recipe "lodge::vagrant"
chef.json = {
rbenv: {
user_installs: [{
user: 'vagrant',
rubies: ["2.1.2"],
global: "2.1.2",
gems: {
"2.1.2" => [
{ name: "bundler" },
{ name: "unicorn" }
]
}
}]
},
mysql: {
server_root_password: ""
},
tz: "Asia/Tokyo"
}
end
# Configure the window for gatling to coalesce writes.
if Vagrant.has_plugin?("vagrant-gatling-rsync")
config.gatling.latency = 2.5
end
end