cookbook 'php5-fpm', '= 0.1.1'
php5-fpm
(19) Versions
0.1.1
-
Follow18
Installs/Configures php5-fpm
cookbook 'php5-fpm', '= 0.1.1', :supermarket
knife supermarket install php5-fpm
knife supermarket download php5-fpm
php5-fpm Cookbook
This PHP5-FPM Cookbook allows for installation of PHP-FPM, configuration of users and directories, base configuration, and pool configuration. The attributes file gives full control over the configration for all pools and PHP-FPM configuration with JSON.
Requirements
Debian, Ubuntu
No additional packages are required.
Attributes
php5-fpm::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>["packages"]["ubuntu_debian"]["install_php_modules"]</tt></td>
<td>Boolean</td>
<td>Install Additional PHP Modules</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>["users"]["php"]</tt></td>
<td>JSON</td>
<td>Users/Directories to Add</td>
<td><tt>Attributes File</tt></td>
</tr>
<tr>
<td><tt>["php_fpm"]["config"]</tt></td>
<td>JSON</td>
<td>PHP-FPM.conf Configuration Values/td>
<td><tt>Attributes File</tt></td>
</tr>
<tr>
<td><tt>["php_fpm"]["pools"]</tt></td>
<td>JSON</td>
<td><pool>.conf Configuration Values/td>
<td><tt>Attributes File</tt></td>
</tr>
</table>
Usage
php-fpm::install
Install PHP5-FPM. Include php5-fpm::install
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[php5-fpm::install]" ] }
php-fpm::create_user
This will create users and directories for use with pools. Include php5-fpm::create_user
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[php5-fpm::create_user]" ] }
php-fpm::configure_pools
This will create pools based on JSON configuration. Include php5-fpm::configure_pools
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[php5-fpm::configure_pools]" ] }
php-fpm::configure_fpm
This will replace the php-fpm.conf file based on JSON configuration. Include php5-fpm::configure_fpm
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[php5-fpm::configure_fpm]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Brian Stajkowski
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.