Update the mediawiki cookbook and upstream cookbooks

Compatibility with Chef 14
This commit is contained in:
Greg Karékinian
2019-04-08 11:20:12 +02:00
parent 6e3e8cde1b
commit 777b85c2ab
312 changed files with 5603 additions and 14219 deletions

View File

@@ -1,68 +1,67 @@
[![Build Status](https://travis-ci.org/yevgenko/cookbook-php-fpm.svg?branch=master)](https://travis-ci.org/yevgenko/cookbook-php-fpm)
Description
===========
# Description
Installs and configures PHP-FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. It's like the `unicorn` of the PHP world dawg.
Installs and configures PHP-FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. It's like the `unicorn` of the PHP world dawg.
Requirements
============
# Requirements
Platform
--------
## Platform
* Debian, Ubuntu
* CentOS, Red Hat, Fedora
* Amazon Linux
- Debian, Ubuntu
- CentOS, Red Hat, Fedora
- Amazon Linux
Cookbooks
---------
## Cookbooks
* apt (leverages apt_repository LWRP)
* yum (leverages yum_repository LWRP)
- none
The `apt_repository` and `yum_repository` LWRPs are used from these cookbooks to create the proper repository entries so the php-fpm package downloaded and installed.
## Chef
Description
==========
- 12.14 or later
Creates a PHP-FPM configuration file at the path specified. Meant to be deployed with a service init scheme/supervisor such as runit. Please see the `application::php-fpm` recipe for a complete working example. In depth information about PHP-FPM's configuration values can be [found in the PHP-FPM documentation](http://php.net/manual/en/install.fpm.configuration.php).
# Description
Usage
=====
Simply include the recipe where you want PHP-FPM installed. Default pool __www__ will be created. To disable pool creation set default['php-fpm']['pools'] to false.
Creates a PHP-FPM configuration file at the path specified. Meant to be deployed with a service init scheme/supervisor such as runit. Please see the `application::php-fpm` recipe for a complete working example. In depth information about PHP-FPM's configuration values can be [found in the PHP-FPM documentation](http://php.net/manual/en/install.fpm.configuration.php).
# Usage
Simply include the recipe where you want PHP-FPM installed. Default pool **www** will be created. To disable pool creation set default['php-fpm']['pools'] to false.
To customize settings and pools you can override default attributes.
### Usage in roles:
## Usage in roles:
```ruby
name "php-fpm"
description "php fpm role"
run_list "recipe[php-fpm]"
override_attributes "php-fpm" => {
"pools" => {
"default" => {
:enable => true
},
"www" => {
:enable => "true",
:cookbook => "another-cookbook",
:process_manager => "dynamic",
:max_requests => 5000,
:php_options => { 'php_admin_flag[log_errors]' => 'on', 'php_admin_value[memory_limit]' => '32M' }
}
}
"pools" => {
"default" => {
:enable => true
},
"www" => {
:enable => "true",
:cookbook => "another-cookbook",
:process_manager => "dynamic",
:max_requests => 5000,
:php_options => { 'php_admin_flag[log_errors]' => 'on', 'php_admin_value[memory_limit]' => '32M' }
}
}
}
```
Creating pools in recipes
=========================
### Create PHP-FPM pool named 'www' with default settings:
# Creating pools in recipes
## Create PHP-FPM pool named 'www' with default settings:
```ruby
php_fpm_pool "www"
```
### Create PHP-FPM pool named 'www' with custom settings:
## Create PHP-FPM pool named 'www' with custom settings:
```ruby
php_fpm_pool "www" do
cookbook "another-cookbook" # get template from another cookbook
@@ -72,21 +71,21 @@ php_fpm_pool "www" do
end
```
### Delete PHP-FPM pool named 'www':
## Delete PHP-FPM pool named 'www':
```ruby
php_fpm_pool "www" do
enable false
end
```
Development
===========
# Development
### Requirements
## Requirements
* [Docker](https://www.docker.com/)
- [Docker](https://www.docker.com/)
### Setup
## Setup
To get all dependencies:
@@ -94,7 +93,7 @@ To get all dependencies:
bundle install
```
### Test
## Test
To see available platforms:
@@ -114,7 +113,7 @@ To test all platforms:
bundle exec rake kitchen:all
```
### Publishing (maintainers only!)
## Publishing (maintainers only!)
Bump version in metadata.rb, commit and push to master!
@@ -122,29 +121,22 @@ Bump version in metadata.rb, commit and push to master!
bundle exec rake publish
```
as a result new tag will be created and pushed to github as well as new version
will be published on https://supermarket.chef.io
as a result new tag will be created and pushed to github as well as new version will be published on <https://supermarket.chef.io>
Contributing
===========
# Contributing
Please do not bump version when proposing a change, no other rules ;)
License and Author
==================
# License and Author
Author:: Seth Chisamore (<schisamo@opscode.com>)
Author:: Seth Chisamore ([schisamo@chef.io](mailto:schisamo@chef.io))
Copyright:: 2011, Opscode, Inc
Copyright:: 2011-2017, Chef Software, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
```
http://www.apache.org/licenses/LICENSE-2.0
```
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.