Created
May 4, 2012 19:44
-
-
Save technosophos/2597263 to your computer and use it in GitHub Desktop.
Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. For a detailed explanation | |
# and listing of configuration options, please view the documentation | |
# online. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "base" | |
# config.vm.boot_mode = :gui | |
config.vm.customize do |vm| | |
vm.memory_size = 1024 | |
end | |
config.vm.network(:hostonly, "33.33.33.11") | |
config.vm.share_folder("v-root", "/vagrant", ".") | |
# config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true) | |
# config.vm.share_folder("v-apt", "/var/cache/apt", "~/temp/vagrant_aptcache/apt", :nfs => true) | |
config.vm.provision :chef_solo do |chef| | |
# This path will be expanded relative to the project directory | |
chef.cookbooks_path = ["cookbooks/site-cookbooks", "cookbooks/drupal-cookbooks"] | |
chef.roles_path = "roles" | |
# This role represents our default Drupal development stack. | |
chef.add_role("drupal_multisite_dev") | |
# Install all of the multisites. | |
chef.add_recipe("drupal::install_multisite") | |
chef.json.merge!({ | |
:www_root => '/vagrant/public', | |
:mysql => { | |
:server_root_password => "root" # TODO Hardcoded MySQL root password. | |
}, | |
:hosts => { | |
:localhost_aliases => ["books.local", "cooks.local", "looks.local"] | |
}, | |
:drupal => { | |
:makefile => "basic.make" | |
} | |
}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment