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.
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"
- Amazon Linux
- Chef 12.0 or later
lamp
- wordpress_lamp uses lamp for that part of the install
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 |
Just include wordpress_lamp
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[wordpress_lamp::default]"
]
}
Test using kitchen
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
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