Installs and configures Wordpress according to the instructions at codex.wordpress.org/Installing_WordPress. Does not set up a wordpress blog. You will need to do this manually by going to hostname/wp-admin/install.php (this URL may be different if you change the attribute values).
Tested on Ubuntu 9.04, 9.10.
Opscode cookbooks, github.com/opscode/cookbooks/tree/master:
The openssl library is required from the openssl cookbook to generate secure passwords.
wordpress - Set the version to download.
wordpress - sha256sum of the tarball, make sure this matches for the version!
wordpress[:database] - Wordpress will use this MySQL database to store its data.
wordpress[:user] - Wordpress will connect to MySQL using this user.
wordpress[:password] - Password for the Wordpress MySQL user. The default is a randomly generated string.
Attributes will probably never need to change (these all default to randomly generated strings):
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 codex.wordpress.org/Installing_WordPress. Does not set up a wordpress blog. You will need to do this manually by going to 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:
Barry Steinglass (firstname.lastname@example.org>)
2010, 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, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.