Code Monkey home page Code Monkey logo

wordpress's Introduction

Description

Installs and configures Wordpress according to the instructions at http://codex.wordpress.org/Installing_WordPress. 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).

Requirements

Platform

  • Debian, Ubuntu

Tested on:

  • Ubuntu 9.04, 9.10, 10.04

Cookbooks

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

Attributes

  • node['wordpress']['version'] - Set the version to download. Using 'latest' (the default) will install the most current version.
  • node['wordpress']['checksum'] - sha256sum of the tarball, make sure this matches for the version! (Not used for 'latest' 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.

Usage

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 http://codex.wordpress.org/Installing_WordPress. 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 ([email protected]) Author:: Joshua Timberman ([email protected]) Author:: Seth Chisamore ([email protected])

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

http://www.apache.org/licenses/LICENSE-2.0

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.

wordpress's People

Contributors

btm avatar lewg avatar lusis avatar nathenharvey avatar schisamo avatar stormsilver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.