Skip to content
Browse files

Initial work on vagrant-0.9.0 support

  • Loading branch information...
1 parent 6df6943 commit 08e712c6826fc99f35e467ff3ed60c810e67ab51 @pearcec pearcec committed
Showing with 7 additions and 5 deletions.
  1. +1 −1 README.md
  2. +3 −4 Vagrantfile
  3. +3 −0 site-cookbooks/README.md
View
2 README.md
@@ -11,7 +11,7 @@ template for your own Drupal projects.
* Ruby >= 1.9.2 (do yourself a favor and use
[rvm](http://beginrescueend.com/) to manage your ruby environment)
* [VirtualBox](http://www.virtualbox.org/)
-* [vagrant](http://www.vagrantup.com/) gem 0.8.x ([does not work with 0.9.x yet](https://github.com/xforty/vagrant-drupal/issues/4))
+* [vagrant](http://www.vagrantup.com/) gem 0.9.x
* [chef](http://wiki.opscode.com/) gem
* [librarian](https://github.com/applicationsonline/librarian) gem
View
7 Vagrantfile
@@ -19,7 +19,7 @@ Vagrant::Config.run do |config|
# Use port-forwarding. Web site will be at http://localhost:4567
# Forwards guest port 80 to host port 4567 and name the mapping "web".
#
- config.vm.forward_port("web", 80, 4567, :auto => true)
+ config.vm.forward_port(80, 4567, :auto => true)
#
# Use host-only networking. Sets the VM's private IP address.
@@ -35,8 +35,7 @@ Vagrant::Config.run do |config|
# The /srv path is owned by www-data so apache can write to it.
#
srv_path = File.expand_path(File.dirname(__FILE__)) + "/srv"
- if !File::directory?(srv_path) then Dir::mkdir(srv_path) end
- config.vm.share_folder("srv", "/srv", srv_path, :owner => "www-data", :group => "www-data")
+ config.vm.share_folder("srv", "/srv", srv_path, :owner => "www-data", :group => "www-data", :create => true)
#
# Provision a new VM using chef-solo. The librarian gem controls
@@ -44,7 +43,7 @@ Vagrant::Config.run do |config|
# site-specific cookbooks, place them in "site-cookbooks".
#
config.vm.provision :chef_solo do |chef|
- #chef.log_level = :debug
+ # chef.log_level = :debug
chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
chef.add_recipe "xforty"
chef.add_recipe "drupal"
View
3 site-cookbooks/README.md
@@ -0,0 +1,3 @@
+## DESCRIPTION
+
+If you need to create site-specific cookbooks, place them in this directory.

0 comments on commit 08e712c

Please sign in to comment.
Something went wrong with that request. Please try again.