Created
April 17, 2012 08:27
-
-
Save jordanbrock/2404532 to your computer and use it in GitHub Desktop.
Vagrantfile for openphoto server
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
# -*- 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