cookbook 'mw_wordpress', '~> 0.1.0'
mw_wordpress (1) Versions 0.1.0 Follow1
Installs/Configures wordpress
cookbook 'mw_wordpress', '~> 0.1.0', :supermarket
knife supermarket install mw_wordpress
knife supermarket download mw_wordpress
Wordpress cookbook
The mw_wordpress
cookbooks povides with a custom resource for deploying
wordpress application.
Requirements
- Chef 12+
Platform support
Because of a restriction on PHP version, we've tested this recipe using
- Ubuntu 14.04
- Centos 7
Cookbook dependencies
There are no dependencies, but the following may be needed
- apt/yum so packages are updated if ubuntu/debian/centos/rhel
Usage
Place a dependency on the mw_wordpress cookbook in your cookbook's metadata.rb
depends 'mw_wordpress'
Then, in a recipe:
wordpress 'my_app' do path '/opt/wp_1' group 'www-data' keys_auth 'qZfq*anWbNq `5q}O|J+eJkBs-a@%@CBn2 .%Ku`.X+G;|![V~BAz,g}KW5f90-@' keys_secure_auth '&0j7f~*0}$9,JNd?3E-83ML4dE@+_UQ-^=/#g.NsCLvw_s}n6q##.1n[^O3EZ(}k' keys_logged_in 'HywyJ?VQ%ts%-/T* NL3Ldx4yz>RUepw.a2}*|kijQZ:OG@[^f[D-%f:%RE:%e0o' keys_nonce '!5p>5ukJcxsm]&4<O[0QrpIKW ZB4np.#KPB)lYP{Z1PY|y}NG|#7VHV-UhEcu55' salt_auth '{)O|HUB.*:@i;Z5rt}(O2u~C^Q ^]?9J&Xl`/E6*` 01db-yb_D{CWJ]5ooa]R<&' salt_secure_auth 'Av11^S?/LuC8f;$TxsIY-|HZz0|pYfaiMVY#usj^NxWWrOZ~T^.k[/sHi|yu=9XP' salt_logged_in 'f^AOI7$b%g(lYx-A(~!K2zRuD1^)62Za$e`+]?EV(CaK4COh}?6/>m%+OafL[p@X' salt_nonce 'I*:mMrkn/,.km~O?mI+[Hv+479Gj(,_[90A_-<<s?F&[9|Qwv$-2+NL*sJd+|~*k' db_password 'wp_1pass' action :deploy end
Notice key and salt values. They are all obtained from https://api.wordpress.org/secret-key/1.1/salt
You can freely combine this recipe for deployment with a custom configuration
of:
- PHP FPM
- Apache/Nginx
There is a test example within test/fixtures directory
Dependent cookbooks
mw_application ~> 0.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: mw_wordpress/metadata.rb:1
FC065: Ensure source_url is set in metadata: mw_wordpress/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mw_wordpress/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mw_wordpress/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mw_wordpress/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: mw_wordpress/metadata.rb:1
FC065: Ensure source_url is set in metadata: mw_wordpress/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mw_wordpress/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mw_wordpress/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mw_wordpress/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
FC065: Ensure source_url is set in metadata: mw_wordpress/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mw_wordpress/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mw_wordpress/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mw_wordpress/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number