Created
April 9, 2013 18:27
-
-
Save zumwalt/5348096 to your computer and use it in GitHub Desktop.
Vagrantfile for vagrant-wordpress
This file contains hidden or 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| | |
config.vm.define :wpvm do |wp_config| | |
# Box | |
wp_config.vm.box = "precise32" | |
# Box URL | |
wp_config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
# Access via IP. | |
# config.vm.network :hostonly, "192.168.33.10" | |
# Shared folder | |
wp_config.vm.share_folder "v-data", "www", "data", :owner => "www-data", :group => "www-data" | |
# Ports | |
wp_config.vm.forward_port 80, 8080 | |
# Chef solo | |
wp_config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "./cookbooks" | |
chef.add_recipe "apt" | |
chef.add_recipe "build-essential" | |
chef.add_recipe "git" | |
chef.add_recipe "vim" | |
chef.add_recipe "phpmyadmin" | |
chef.add_recipe "wordpress" | |
chef.add_recipe "php::module_curl" | |
chef.json = { | |
"mysql" => { | |
"server_root_password" => "vagrant", | |
"server_repl_password" => "vagrant", | |
"server_debian_password" => "vagrant" | |
}, | |
"wordpress" => { | |
"dir" => "/home/vagrant/www", | |
"url" => "http://wordpress.org/latest.tar.gz", | |
"lang" => "en", | |
"debug" => "false", | |
"db" => { | |
"database" => "wordpressdb", | |
"user" => "wordpressuser", | |
"prefix" => "wp_" | |
} | |
} | |
} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment