Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

php_wrapper (6) Versions 2.1.3

Installs/Configures php_wrapper

Policyfile
Berkshelf
Knife
cookbook 'php_wrapper', '= 2.1.3', :supermarket
cookbook 'php_wrapper', '= 2.1.3'
knife supermarket install php_wrapper
knife supermarket download php_wrapper
README
Dependencies
Changelog
Quality 0%

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