cookbook 'wordpress_lamp', '~> 1.0.0'
wordpress_lamp (2) Versions 1.0.0 Follow0
Installs/Configures wordpress via lamp server
cookbook 'wordpress_lamp', '~> 1.0.0', :supermarket
knife supermarket install wordpress_lamp
knife supermarket download wordpress_lamp
wordpress_lamp Cookbook
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
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['wordpress_lamp']['site']</tt></td>
<td>String</td>
<td>Name of site</td>
<td><tt>test</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['vhost']['server_admin']</tt></td>
<td>String</td>
<td>Name of server admin for vhost</td>
<td><tt>root@localhost</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['vhost']['server_name']</tt></td>
<td>String</td>
<td>Apache server name</td>
<td><tt>test.com</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['vhost']['server_alias']</tt></td>
<td>String</td>
<td>Apache server alias</td>
<td><tt>www.test.com</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['vhost']['port']</tt></td>
<td>Int</td>
<td>What port to run Apache server on</td>
<td><tt>80</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['sql']['import_sql']</tt></td>
<td>Boolean</td>
<td>Whether to import sql from dump</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['sql']['database']</tt></td>
<td>String</td>
<td>Database Name</td>
<td><tt>test_db</tt></td>
</tr>
<tr>
<td><tt>['wordpress_lamp']['sql']['database_host']</tt></td>
<td>String</td>
<td>Database host</td>
<td><tt>localhost</tt></td>
</tr>
</table>
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
- 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
License and Authors
Authors: Jesse Whitham (jesse.whitham@gmail.com)
License: GNU GPL v3
Heavily based from https://github.com/Kgirthofer/s3_wordpress
and dependent on https://github.com/Kgirthofer/lamp
Dependent cookbooks
lamp >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
wordpress_lamp CHANGELOG
This file is used to list changes made in each version of the wordpress_lamp cookbook.
1.0.0
- [Jesse Whitham] - Initial release of wordpress_lamp
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: wordpress_lamp/metadata.rb:1
FC069: Ensure standardized license defined in metadata: wordpress_lamp/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: wordpress_lamp/metadata.rb:1
FC069: Ensure standardized license defined in metadata: wordpress_lamp/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
FC069: Ensure standardized license defined in metadata: wordpress_lamp/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric