Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created November 1, 2012 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheeseplus/3991125 to your computer and use it in GitHub Desktop.
Save cheeseplus/3991125 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
#config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# Forward a port from the guest to the host, which allows for outside
# computers to access the VM, whereas host only networking does not.
config.vm.forward_port 80, 8080
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
# Enable and configure the chef solo provisioner
config.vm.provision :chef_solo do |chef|
chef.json = {
"mysql" => {
"server_root_password" => "poop"
}
}
chef.cookbooks_path = "cookbooks"
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "mysql::server"
chef.add_recipe "apache2"
chef.add_recipe "php"
chef.add_recipe "apache2::mod_php5"
chef.add_recipe "php::module_mysql"
chef.add_recipe "txsilc"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment