-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
39 lines (35 loc) · 1.09 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = 'precise32'
config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
config.vm.host_name = 'chef-rails-dev-box'
config.vm.network :hostonly, "192.168.30.00"
config.vm.share_folder("vagrant-root", "/vagrant", "./LocalSupport", "nfs" => true)
config.vm.forward_port 3000, 3000
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["chef/cookbooks", "chef/site-cookbooks"]
chef.roles_path = [[:host, "chef/roles"]]
chef.data_bags_path = [[:host, "chef/data_bags"]]
chef.add_role "rails-development"
chef.json = {
:mysql => {
:server_root_password => '',
:server_debian_password => '',
:server_repl_password => ''
},
"postgresql" => {
"password" => {
"postgres" => ""
}
},
"rvm" => {
"rubies" => ["1.9.2"],
"global_gems" => [
{ 'name' => 'bundler' },
{ 'name' => 'rails'}
]
}
}
end
end