I just recently created a cookbook for wordpress.The cookbook will automatically download and set up the database for you.To get started on using the cookbook. 1.If you are using librarian just add this line to the Cheffile.
cookbook 'wordpress', :git => 'https://github.com/h0lyalg0rithm/wordpress-cookbook'
otherwise you can download the cookbook from the here and extract it into your cookbooks directory. 2.Next just add the following to the run list or to the role file.