Skip to content

whithajess/wordpress_lamp

Repository files navigation

wordpress_lamp Cookbook

Cookbook Version License

This cookbook is for creating a usable wordpress with lamp install on your host.

It will not handle deployment of the application specific code it is setup for capistrano deploys.

Requirements

You will need to create encrypted data bags on the server for the mysql password and wordpress keys and salts.

  • Create a data bag "mysql" with item "password", store your root password there with the json flag "mysql_password"

  • Create a data bag "wordpress" with item "salts", store your salts and keys there under these json flags: "auth_key" "secure_auth_key" "logged_in_key" "nonce_key" "auth_salt" "secure_auth_salt" "logged_in_salt" "nonce_salt"

Supported Platforms

  • Amazon Linux

Chef

  • Chef 12.0 or later

Cookbooks

  • lamp - wordpress_lamp uses lamp for that part of the install

Attributes

wordpress_lamp::default

Key Type Description Default
['wordpress_lamp']['site'] String Name of site test
['wordpress_lamp']['vhost']['server_admin'] String Name of server admin for vhost root@localhost
['wordpress_lamp']['vhost']['server_name'] String Apache server name test.com
['wordpress_lamp']['vhost']['server_alias'] String Apache server alias www.test.com
['wordpress_lamp']['vhost']['port'] Int What port to run Apache server on 80
['wordpress_lamp']['sql']['import_sql'] Boolean Whether to import sql from dump true
['wordpress_lamp']['sql']['database'] String Database Name test_db
['wordpress_lamp']['sql']['database_host'] String Database host localhost

Usage

wordpress_lamp::default

Just include wordpress_lamp in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[wordpress_lamp::default]"
  ]
}

Testing

Test using kitchen

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Jesse Whitham ([email protected]) License: GNU GPL v3

Heavily based from https://github.com/Kgirthofer/s3_wordpress and dependent on https://github.com/Kgirthofer/lamp

About

wordpress with lamp cookbook

Resources

License

Stars

Watchers

Forks

Packages

No packages published