-
Notifications
You must be signed in to change notification settings - Fork 17
/
Vagrantfile
40 lines (36 loc) · 1.08 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
# -*- 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", ".", "nfs" => true)
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" => ""
}
},
"rbenv" => {
"global" => "2.0.0-p0",
"rubies" => [ "2.0.0-p0" ],
"gems" => {
"2.0.0-p0" => [
{ 'name' => 'bundler' }
]
}
}
}
end
end