cookbook 'php_wrapper', '= 2.1.3'
php_wrapper (6) Versions 2.1.3 Follow1
Installs/Configures php_wrapper
cookbook 'php_wrapper', '= 2.1.3', :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
common_attrs >= 0.0.0 |
php ~> 1.7 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
php_wrapper
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.1.3 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
2.1.3 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-composer.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:35
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:59
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_command.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/templates/default/fpm.upstart.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/templates/default/fpm.upstart.conf.erb:28
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_command.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:1
FC019: Access node attributes in a consistent manner: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:22
FC019: Access node attributes in a consistent manner: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:139
FC046: Attribute assignment uses assign unless nil: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:17
FC048: Prefer Mixlib::ShellOut: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:45
FC048: Prefer Mixlib::ShellOut: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:137
FC064: Ensure issues_url is set in metadata: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/metadata.rb:1
2.1.3 failed this metric
2.1.3 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-composer.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php-fpm.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:35
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:59
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_command.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/templates/default/fpm.upstart.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/templates/default/fpm.upstart.conf.erb:28
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_command.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:1
FC016: LWRP does not declare a default action: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:1
FC019: Access node attributes in a consistent manner: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/recipes/php-fpm.rb:22
FC019: Access node attributes in a consistent manner: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_pool.rb:139
FC046: Attribute assignment uses assign unless nil: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/attributes/php.rb:17
FC048: Prefer Mixlib::ShellOut: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_composer_binary.rb:45
FC048: Prefer Mixlib::ShellOut: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/resources/php_config.rb:137
FC064: Ensure issues_url is set in metadata: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/1df488d3abdd19cd1dc54376/php_wrapper/metadata.rb:1