GithubHelp home page GithubHelp logo

sirithink / wordpress-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brint/wordpress-cookbook

0.0 2.0 0.0 4.44 MB

Development repository for Opscode Cookbook wordpress

Home Page: http://community.opscode.com/cookbooks/wordpress

License: Apache License 2.0

wordpress-2's Introduction

Chef Wordpress Cookbook

The Chef Wordpress cookbook installs and configures Wordpress according to the instructions at http://codex.wordpress.org/Installing_WordPress.

This cookbook does not set up the 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).

Installation

Install the cookbook using knife:

$ knife cookbook site install wordpress

Or, if you are using Berkshelf, add the cookbook to your Berksfile:

cookbook 'wordpress'

Usage

Add the cookbook to your run_list in a node or role:

{
  "run_list": [
    "recipe[wordpress::default]"
  ]
}

Or include it in a recipe:

# other_cookbook/metadata.rb
# ...
depends 'wordpress'
# other_cookbook/recipes/default.rb
# ...
include_recipe 'wordpress::default'

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.

Attributes

node['wordpress'] attributes:

Attribute Description Example Default
version version of the wordpress to install 1.2.3 'latest'
checksum sha256sum of the tarball abcd1234 ''
dir location for wordpress files /nfs/wp /var/www
server_aliases server aliases for Apache ['foo.com'] [(node's FQDN)]

node['wordpress']['db'] attributes:

Attribute Description Example Default
database name of the database to use bob-wordpress wordpressdb
user the user to connect to MySQL user wordpressuser
password the password to connect to MySQL P@s$w0rD (randomly generated)

node['wordpress']['languages'] attributes:

Attribute Description Example Default
lang WPLANG value ja ''
version version of the WordPress translation projects 3.6.x ''
projects translation project names to install ['main'] ['main', 'admin', 'admin_network', 'continents_cities']
themes theme translation project names to install ['twentytwelve'] []

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']

Development

This cookbook uses Test Kitchen (1.0). To run the tests, clone the repository, install the gems, and run test kitchen:

$ git clone git://github.com/opscode-cookbooks/wordpress.git
$ cd wordpress
$ bundle install
$ bundle exec strainer test
  1. Fork the cookbook on GitHub
  2. Make changes
  3. Write appropriate tests
  4. Submit a Pull Request back to the project
  5. Open a JIRA ticket, linking back to the Pull Request

License & Authors

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-2's People

Contributors

btm avatar koseki avatar lewg avatar lusis avatar nathenharvey avatar ranjib avatar schisamo avatar sethvargo avatar stormsilver avatar

Watchers

 avatar  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.