Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


wordpress (25) Versions 0.8.8

Installs/Configures WordPress

cookbook 'wordpress', '= 0.8.8', :supermarket
cookbook 'wordpress', '= 0.8.8'
knife supermarket install wordpress
knife supermarket download wordpress
Quality -%


Installs and configures Wordpress according to the instructions at Does not set up a wordpress blog. You will need to do this manually by going to http://hostname/wp-admin/install.php (this URL may be different if you change the attribute values).



  • [COOK-826] - recipe doesn't quote password string


  • [COOK-534] - allow server_aliases to overridden by an attribute
  • [COOK-799] - fixed disables .htaccess breaking permalink feature
  • [COOK-820] - guard with check for chef-solo in our cookbooks


  • [COOK-406] - wp-config.php.erb has wrong CRLF encoding
  • Dropping explicit support for Red Hat platforms due to issues in php and mysql cookbooks (COOK-603, COOK-672, COOK-816, COOK-679)


  • [COOK-435] Don't set the mysql root user password in wordpress cookbook
  • [COOK-535] - recursively create the directory
  • RHEL/CentOS/Fedora support (yeah!)
  • cleaned up node attribute keys
  • cleaned up



  • Debian, Ubuntu

Tested on:

  • Ubuntu 9.04, 9.10, 10.04


  • mysql
  • php
  • apache2
  • opensssl (uses library to generate secure passwords)


  • node['wordpress']['version'] - Set the version to download.
  • node['wordpress']['checksum'] - sha256sum of the tarball, make sure this matches for the version!
  • node['wordpress']['dir'] - Set the location to place wordpress files. Default is /var/www.
  • node['wordpress']['db']['database'] - Wordpress will use this MySQL database to store its data.
  • node['wordpress']['db']['user'] - Wordpress will connect to MySQL using this user.
  • node['wordpress']['db']['password'] - Password for the Wordpress MySQL user. The default is a randomly generated string.
  • node['wordpress']['server_aliases'] - Array of ServerAliases used in apache vhost. Default is node['fqdn'].

Attributes will probably never need to change (these all default to randomly generated strings):

  • node['wordpress']['keys']['auth']
  • node['wordpress']['keys']['secure_auth']
  • node['wordpress']['keys']['logged_in']
  • node['wordpress']['keys']['nonce']

The random generation is handled with the secure_password method in the openssl cookbook which is a cryptographically secure random generator and not predictable like the random method in the ruby standard library.


If a different version than the default is desired, download that version and get the SHA256 checksum (sha256sum on Linux systems), and set the version and checksum attributes.

Add the "wordpress" recipe to your node's run list or role, or include the recipe in another cookbook.

Chef will install and configure mysql, php, and apache2 according to the instructions at Does not set up a wordpress blog. You will need to do this manually by going to http://hostname/wp-admin/install.php (this URL may be different if you change the attribute values).

The mysql::server recipe needs to come first, and contain an execute resource to install mysql privileges from the grants.sql template in this cookbook.

Note about MySQL

This cookbook will decouple the mysql::server and be smart about detecting whether to use a local database or find a database server in the environment in a later version.

License and Author

Author:: Barry Steinglass (
Author:: Joshua Timberman (
Author:: Seth Chisamore (

Copyright:: 2010-2011, Opscode, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

No quality metric results found