Skip to content

Instantly share code, notes, and snippets.

@jordanbrock
Created April 17, 2012 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jordanbrock/2404532 to your computer and use it in GitHub Desktop.
Save jordanbrock/2404532 to your computer and use it in GitHub Desktop.
Vagrantfile for openphoto server
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "vagrant-oneiric"
config.vm.provision :chef_solo do |chef|
chef.binary_path = "/path/to/chef/binary/"
chef.cookbooks_path = "/path/to/chef/cookbooks"
chef.json = {
:mysql => {
:server_root_password => "secretpassword"
}
}
chef.add_recipe("mysql")
chef.add_recipe("mysql::server")
chef.add_recipe("apache2")
chef.add_recipe("imagemagick")
chef.add_recipe("php")
chef.add_recipe("php::module_curl")
chef.add_recipe("php::module_mysql")
chef.add_recipe("php::module_apc")
chef.add_recipe("php::module_dev")
chef.add_recipe("php::module_imagick")
chef.add_recipe("php::module_mcrypt")
chef.add_recipe("php::module_gd")
chef.add_recipe("apache2::mod_rewrite")
chef.add_recipe("apache2::mod_deflate")
chef.add_recipe("apache2::mod_headers")
chef.add_recipe("apache2::mod_expires")
chef.add_recipe("apache2::mod_php5")
chef.add_recipe("git")
end
config.vm.share_folder "openphoto", "/var/www/openphoto", "/path/to/openphoto/frontend", :owner => "www-data", :group => "vagrant"
config.vm.forward_port 80, 8080
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment