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 1.0.1

Installs/Configures php_wrapper

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

php_wrapper-cookbook

Wrappers the opscode/php package so as to improve upon the php.ini configuration and provide better php fpm support. In addition, we provide a few extra goodies.

Supported Platforms

Ubuntu 14.04+ :P

Attributes

Key Type Description Default
php.pear_packages Hash LWRP generator{php_pear_package:{config} {}
php.fpm_poos Hash LWRP generator{php_pool:{config} {}
php.directives Hash select php.ini directives attributes.default
php.directives.custom Hash any additionnal php.ini directives attributes.default
php.composer Hash php composer install directives attributes.composer

Usage

php_wrapper::default

Includes php::default to install PHP either by package or by source. Additionally loops over php.pear_packages in order to populate php_pear_packages resources.

php_wrapper::fpm

Installs php-fpm, updates the upstart service for improvide reload, and loops through php.fpm_pools in order to populate php_pool resources.

php_wrapper::composer

Installs php composer globally

License and Authors

Author:: Lightspeed (jonathan@lightspeedpos.com)

Dependent cookbooks

php = 1.7.2

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of php_wrapper

0.1.1

Add custom php.ini file
Add custom php.ini attributes
Replace mysql with mysqlnd
Ensure mysqlnd installed
Add php_pool lwrp
Add php-fpm installation recipe
Add pear_package install attributes

Foodcritic Metric
            

1.0.1 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/applications.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/applications.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/composer.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/composer.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:35
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/fpm.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/application.rb:41
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/application.rb:58
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/composer.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/composer.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/deployment.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/deployment.rb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/composer.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/composer.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/composer.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/composer.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/ppas.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/ppas.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/deployment.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/deployment.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_credentials.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_credentials.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_deploy.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_deploy.rb:42
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_status.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/git_status.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/pool.rb:44
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/pool.rb:48
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.conf.erb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.upstart.conf.erb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/templates/default/fpm.upstart.conf.erb:28
FC002: Avoid string interpolation where not required: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/libraries/inherit_attributes.rb:46
FC002: Avoid string interpolation where not required: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/app_config.rb:40
FC002: Avoid string interpolation where not required: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/deployment.rb:55
FC017: LWRP does not notify when updated: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/application.rb:11
FC017: LWRP does not notify when updated: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/application.rb:21
FC017: LWRP does not notify when updated: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/providers/application.rb:27
FC019: Access node attributes in a consistent manner: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:10
FC019: Access node attributes in a consistent manner: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:4
FC019: Access node attributes in a consistent manner: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/fpm.rb:18
FC019: Access node attributes in a consistent manner: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/resources/pool.rb:109
FC046: Attribute assignment uses assign unless nil: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/applications.rb:2
FC046: Attribute assignment uses assign unless nil: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/applications.rb:3
FC046: Attribute assignment uses assign unless nil: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/composer.rb:2
FC046: Attribute assignment uses assign unless nil: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:34
FC046: Attribute assignment uses assign unless nil: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/attributes/default.rb:35
FC048: Prefer Mixlib::ShellOut: /tmp/cook/5231518b8650cd749411bd71/php_wrapper/recipes/composer.rb:20