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.0.0

Installs/Configures php_wrapper

Policyfile
Berkshelf
Knife
cookbook 'php_wrapper', '= 2.0.0', :supermarket
cookbook 'php_wrapper', '= 2.0.0'
knife supermarket install php_wrapper
knife supermarket download php_wrapper
README
Dependencies
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.

Foodcritic Metric
            

2.0.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-composer.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php-fpm.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:51
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_command.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_config.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_pool.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_pool.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.conf.erb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.upstart.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/templates/default/fpm.upstart.conf.erb:28
FC016: LWRP does not declare a default action: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_command.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_pool.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/recipes/php-fpm.rb:21
FC019: Access node attributes in a consistent manner: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_pool.rb:138
FC046: Attribute assignment uses assign unless nil: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/attributes/php.rb:17
FC048: Prefer Mixlib::ShellOut: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_composer_binary.rb:37
FC048: Prefer Mixlib::ShellOut: /tmp/cook/6fb4d54486134a369bf5b42f/php_wrapper/resources/php_config.rb:125