Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added phpmyadmin and updated wordpress cookbook

  • Loading branch information...
commit ef05b55387a1fd6fc8324391839c669083a6f94d 1 parent 68d90ef
@claudiosmweb authored
View
3  .gitmodules
@@ -28,3 +28,6 @@
[submodule "cookbooks/wordpress"]
path = cookbooks/wordpress
url = git@github.com:claudiosmweb/wordpress-cookbook.git
+[submodule "cookbooks/phpmyadmin"]
+ path = cookbooks/phpmyadmin
+ url = git@github.com:Agiley/chef-phpmyadmin.git
View
59 README.md
@@ -7,11 +7,19 @@ Installed by default:
* Apache2
* MySQL
* PHP
+* phpMyAdmin
* Git
* Subversion
* Vim
* WordPress
+## Requirements ##
+
+* [VirtualBox](https://www.virtualbox.org/)
+* [Ruby](http://www.ruby-lang.org)
+* [Vagrant](http://vagrantup.com/)
+* [Git](http://git-scm.com/)
+
## Install: ##
Clone this repo and execute:
@@ -20,12 +28,48 @@ Clone this repo and execute:
$ git submodule update
$ vagrant up
-## Requirements ##
+## Custom Instalation: ##
-* [VirtualBox](https://www.virtualbox.org/)
-* [Ruby](http://www.ruby-lang.org)
-* [Vagrant](http://vagrantup.com/)
-* [Git](http://git-scm.com/)
+See the configurations that are possible via the Vagrantfile.
+
+### WordPress config: ###
+
+ "wordpress" => {
+ "dir" => "/home/vagrant/www",
+ "url" => "http://br.wordpress.org/wordpress-3.5-pt_BR.tar.gz",
+ "lang" => "pt_BR",
+ "debug" => "false",
+ "db" => {
+ "database" => "wordpressdb",
+ "user" => "wordpressuser",
+ "prefix" => "wp_"
+ }
+
+* **dir** - Not change, it is essential to work with the shared folder!
+* **url** - WordPress tag.gz url
+* **lang** - WordPress installation language.
+* **debug** - WordPress debugging mode.
+* **db** - WordPress MySQL database config.
+
+### MySQL config: ###
+
+ "mysql" => {
+ "server_root_password" => "vagrant",
+ "server_repl_password" => "vagrant",
+ "server_debian_password" => "vagrant"
+ },
+
+All fields are for setting passwords to the MySQL users.
+
+### Access via IP or fake domain ###
+
+To access via IP uncomment the line below:
+
+ # config.vm.network :hostonly, "192.168.33.10"
+
+You can also configure your hosts file:
+
+ 192.168.33.10 www.project-name.com
## Sources: ##
@@ -45,10 +89,13 @@ Cookbooks by [Opscode Public Cookbooks](https://github.com/opscode-cookbooks/)
mysql/
openssl/
php/
+ phpmyadmin/
subversion/
vim/
wordpress/
+WordPress custom cookbook: <https://github.com/claudiosmweb/wordpress-cookbook/>
+
## License: ##
-Licensed under the MIT license. [License text](http://opensource.org/licenses/mit-license.php).
+Licensed under the [MIT license](http://opensource.org/licenses/mit-license.php).
View
19 Vagrantfile
@@ -7,6 +7,9 @@ Vagrant::Config.run do |config|
# 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"
@@ -21,11 +24,9 @@ Vagrant::Config.run do |config|
chef.add_recipe "git"
chef.add_recipe "subversion"
chef.add_recipe "vim"
- chef.add_recipe "apache2"
- chef.add_recipe "mysql::server"
- chef.add_recipe "php"
- chef.add_recipe "openssl"
+ chef.add_recipe "phpmyadmin"
chef.add_recipe "wordpress"
+ chef.add_recipe "php::module_curl"
chef.json = {
"mysql" => {
@@ -34,7 +35,15 @@ Vagrant::Config.run do |config|
"server_debian_password" => "vagrant"
},
"wordpress" => {
- "dir" => "/home/vagrant/www"
+ "dir" => "/home/vagrant/www",
+ "url" => "http://br.wordpress.org/wordpress-3.5-pt_BR.tar.gz",
+ "lang" => "pt_BR",
+ "debug" => "false",
+ "db" => {
+ "database" => "wordpressdb",
+ "user" => "wordpressuser",
+ "prefix" => "wp_"
+ }
}
}
1  cookbooks/phpmyadmin
@@ -0,0 +1 @@
+Subproject commit d096b1d47a357b5f2c46a8ed2554a253cd28ffee
1  cookbooks/wordpress
@@ -0,0 +1 @@
+Subproject commit 6b7c08e0ef079ce7147697fa519d393877938f1a
Please sign in to comment.
Something went wrong with that request. Please try again.