forked from laravelio/laravel.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
63 lines (54 loc) · 2.01 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
Vagrant::configure('2') do |config|
config.vm.box = 'bn-quantal64-lamp-2.4'
config.vm.box_url = 'http://big-name.s3.amazonaws.com/bn-quantal64-lamp-2.4.box'
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "768"]
end
config.vm.network "private_network", ip: "10.10.10.10"
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=777"]
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "vagrant-chef/chef/cookbooks"
chef.data_bags_path = "vagrant-chef/chef/data_bags"
chef.add_recipe "apt"
chef.add_recipe "git"
chef.add_recipe "apache2"
chef.add_recipe "apache2::mod_rewrite"
chef.add_recipe "apache2::mod_ssl"
chef.add_recipe "apache2::mod_php5"
chef.add_recipe "mysql::server"
chef.add_recipe "php"
chef.add_recipe "php::module_mysql"
chef.add_recipe "php::module_apc"
chef.add_recipe "php::module_sqlite3"
chef.add_recipe "php::module_gd"
chef.add_recipe "php::module_curl"
chef.add_recipe "chef-php-extra"
chef.add_recipe "database::mysql"
chef.add_recipe "apache-sites"
chef.add_recipe "mysql-databases"
chef.add_recipe "r"
chef.json.merge!({
"mysql" => {
"server_root_password" => "password",
"server_debian_password" => "password",
"server_repl_password" => "password",
"bind_address" => "0.0.0.0"
},
"databases" => {
"create" => [
"lio_development"
]
},
"sites" => ["default"]
})
end
end
Vagrant::Config.run do |config|
config.vm.provision :shell do |shell|
shell.inline = "sudo bash /vagrant/vagrant-chef/scripts/shell.sh"
end
# Ruby stuff
config.vm.provision :shell do |shell|
shell.inline = "sudo gem install compass --no-ri --no-rdoc"
end
end