-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathVagrantfile
37 lines (31 loc) · 1005 Bytes
/
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
# -*- 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.forward_port 3000, 3000
config.vm.forward_port 3306, 3306
config.vm.share_folder "app", "/home/vagrant/app", "app/", :create => true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks"]
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "rvm::vagrant"
chef.add_recipe "rvm::system"
chef.add_recipe "git"
chef.add_recipe "postgresql"
chef.add_recipe "mysql::server"
chef.json.merge!({
:rvm => {
:default_ruby => 'ruby-2.0.0'
},
:mysql => {
"server_root_password" => "root",
"server_repl_password" => "root",
"server_debian_password" => "root",
"allow_remote_root" => true
}
})
end
config.vm.provision "shell", inline: "sudo chown -R vagrant /usr/local/rvm"
end