cookbook 'php_wrapper', '~> 2.2.0'
php_wrapper (6) Versions 2.2.0 Follow1
Installs/Configures php_wrapper
cookbook 'php_wrapper', '~> 2.2.0', :supermarket
knife supermarket install php_wrapper
knife supermarket download php_wrapper
php_wrapper
This cookbook provides additional standard primitives to manage PHP and PHP-FPM deployments.
Mainly on Ubuntu systems, these resources will allow us to manage configuration files for different PHP SAPI modules (cli vs cgi vs fpm), will allow you to define configuration file priorities so as to remain consistent and not clash with Ubuntu provided files, and will allow you to manage PHP-FPM which is how you roll.
Reqirements
Platforms
- Debina, Ubuntu
Attributes
-
node[:php][:packages]
= PHP packages to install (php::packages) -
node[:php][:mysql][:package]
= Mysql PHP package to instal (php::module_mysql) -
node[:php][:pear_packages]
= PHP Pear packages to install (php_wrapper::default) -
node[:php][:directives]
= Default php.ini directives (php_wrapper::default) -
node[:php][:directives][:custom]
= Additional php.ini directives -
node[:php][:directives][:module]
= Additional modular php.ini directives -
node[:php][:fpm][:pools]
= PHP FPM pools to install
Resources
This cookbook includes Resources for managing the following topics. Additional documentation may be found directly in each resource definition file.
- PHP Composer installation
- PHP Composer execution
- PHP-FPM Pool deployments
- PHP modular configuration files
Recipes
default
Include the php
upstream cookbook, installs packages and deploys configuration files.
composer
Installs a global composer
binary installation
php_fpm
Installs and configures the php-fpm
package and pools.
Note: The php_pool
resource automatically sets the status page and ping path to be /_php/status and /_php/ping respectively. It is left up to you to secure the /_php/ uri path so that it may only be reached by your monitoring system.
Dependent cookbooks
php ~> 1.7 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
php_wrapper
2.2.0
- Remove dependency on common_attrs
- Change a default value to lazy to ensure it's content is cloned
- Bugfix template error for max_requests
2.1.3
- Bugfix symlinks
2.1.2
- Bugfix php sapi detection
2.1.1
- Bugfix php_config actions
2.0.1
- Add whyrun support to php_composer_binary and php_composer_command
- Add whyrun support to php_config and php_pool
- PHP FPM bugfixes
2.0.0
- Initial rewrite
Collaborator Number Metric
2.2.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.2.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
2.2.0 failed this metric
FC046: Attribute assignment uses assign unless nil: php_wrapper/attributes/php.rb:17
FC064: Ensure issues_url is set in metadata: php_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: php_wrapper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: php_wrapper/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: php_wrapper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: php_wrapper/metadata.rb:1
FC092: Custom resources should not define actions: php_wrapper/resources/php_pool.rb:7
FC108: Resource should not define a property named 'name': php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:13
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:21
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:26
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:34
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:24
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:35
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:40
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:45
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:10
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:15
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:20
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:25
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:31
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:36
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:41
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:46
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:51
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:56
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:62
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:66
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:69
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:72
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:77
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:82
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:87
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:92
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:97
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:102
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:107
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:113
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:119
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:125
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:131
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:135
FC118: Resource property setting name_attribute vs. name_property: php_wrapper/resources/php_config.rb:9
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.0 passed this metric
Testing File Metric
2.2.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
2.2.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
2.2.0 failed this metric
2.2.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
2.2.0 failed this metric
FC046: Attribute assignment uses assign unless nil: php_wrapper/attributes/php.rb:17
FC064: Ensure issues_url is set in metadata: php_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: php_wrapper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: php_wrapper/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: php_wrapper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: php_wrapper/metadata.rb:1
FC092: Custom resources should not define actions: php_wrapper/resources/php_pool.rb:7
FC108: Resource should not define a property named 'name': php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:13
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:21
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:26
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:34
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:24
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:35
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:40
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:45
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:10
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:15
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:20
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:25
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:31
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:36
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:41
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:46
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:51
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:56
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:62
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:66
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:69
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:72
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:77
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:82
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:87
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:92
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:97
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:102
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:107
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:113
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:119
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:125
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:131
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:135
FC118: Resource property setting name_attribute vs. name_property: php_wrapper/resources/php_config.rb:9
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.0 passed this metric
Testing File Metric
2.2.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
2.2.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
2.2.0 failed this metric
FC064: Ensure issues_url is set in metadata: php_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: php_wrapper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: php_wrapper/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: php_wrapper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: php_wrapper/metadata.rb:1
FC092: Custom resources should not define actions: php_wrapper/resources/php_pool.rb:7
FC108: Resource should not define a property named 'name': php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_binary.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:8
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:13
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:21
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:26
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_composer_command.rb:34
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:9
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:14
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:19
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:24
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:30
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:35
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:40
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_config.rb:45
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:10
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:15
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:20
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:25
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:31
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:36
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:41
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:46
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:51
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:56
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:62
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:66
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:69
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:72
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:77
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:82
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:87
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:92
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:97
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:102
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:107
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:113
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:119
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:125
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:131
FC117: Do not use kind_of in custom resource properties: php_wrapper/resources/php_pool.rb:135
FC118: Resource property setting name_attribute vs. name_property: php_wrapper/resources/php_config.rb:9
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.2.0 passed this metric
Testing File Metric
2.2.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
2.2.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
2.2.0 failed this metric
2.2.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