Skip to content
Newer
Older
100644 38 lines (33 sloc) 1.12 KB
ff18a68 @mdxp Cheffile ftw
mdxp authored
1 Vagrant::Config.run do |config|
2 config.vm.box_url = "http://vagrant-promet.s3.amazonaws.com/debian-60.box"
3 config.vm.box = "debian-60"
4
5 config.vm.customize ["modifyvm", :id, "--memory", "512"]
6
7 config.vm.forward_port 80, 8080
8 config.vm.share_folder("v-root", "/vagrant", ".")
9 #config.vm.share_folder("v-root", "/vagrant", ".",:nfs => true)
10
11 config.vm.provision :chef_solo do |chef|
12 # This path will be expanded relative to the project directory
13 chef.cookbooks_path = ["cookbooks"]
14 chef.roles_path = "roles"
15 chef.log_level = :info
16
17 chef.add_role("drupal")
18 # This is basically the Vagrant role.
19 chef.json.merge!({
20 :www_root => '/vagrant/public',
21 :mysql => {
22 :server_root_password => "rootpass",
23 :server_repl_password => "replpass",
24 :server_debian_password => "debianpass"
25 },
26 :drupal => {
27 :db => {
28 :password => "drupalpass"
29 },
30 :dir => "/vagrant/sites/mydev"
31 },
32 :hosts => {
33 :localhost_aliases => ["drupal.vbox.local", "dev-site.vbox.local"]
34 }
35 })
36 end
37 end
Something went wrong with that request. Please try again.