feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./test/integration/default/inspec.yml
1:1 warning missing document start "---" (document-start)
pillar.example
3:1 warning missing document start "---" (document-start)
7:22 warning truthy value should be one of [false, true] (truthy)
8:22 warning truthy value should be one of [false, true] (truthy)
10:22 warning truthy value should be one of [false, true] (truthy)
16:17 warning truthy value should be one of [false, true] (truthy)
41:12 error wrong indentation: expected 10 but found 11 (indentation)
46:27 warning truthy value should be one of [false, true] (truthy)
70:18 warning truthy value should be one of [false, true] (truthy)
74:19 warning truthy value should be one of [false, true] (truthy)
83:22 warning truthy value should be one of [false, true] (truthy)
97:22 warning truthy value should be one of [false, true] (truthy)
107:89 error line too long (93 > 88 characters) (line-length)
118:20 warning truthy value should be one of [false, true] (truthy)
126:14 error wrong indentation: expected 12 but found 13 (indentation)
126:23 warning truthy value should be one of [false, true] (truthy)
151:20 warning truthy value should be one of [false, true] (truthy)
177:19 warning truthy value should be one of [false, true] (truthy)
197:25 warning truthy value should be one of [false, true] (truthy)
```
2019-08-06 16:51:42 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2019-08-07 17:01:55 +02:00
|
|
|
## php pillar examples
|
2014-06-06 19:14:44 +02:00
|
|
|
|
|
|
|
php:
|
2019-07-25 23:27:36 +02:00
|
|
|
# Use the following values to mute deprecation warnings
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./test/integration/default/inspec.yml
1:1 warning missing document start "---" (document-start)
pillar.example
3:1 warning missing document start "---" (document-start)
7:22 warning truthy value should be one of [false, true] (truthy)
8:22 warning truthy value should be one of [false, true] (truthy)
10:22 warning truthy value should be one of [false, true] (truthy)
16:17 warning truthy value should be one of [false, true] (truthy)
41:12 error wrong indentation: expected 10 but found 11 (indentation)
46:27 warning truthy value should be one of [false, true] (truthy)
70:18 warning truthy value should be one of [false, true] (truthy)
74:19 warning truthy value should be one of [false, true] (truthy)
83:22 warning truthy value should be one of [false, true] (truthy)
97:22 warning truthy value should be one of [false, true] (truthy)
107:89 error line too long (93 > 88 characters) (line-length)
118:20 warning truthy value should be one of [false, true] (truthy)
126:14 error wrong indentation: expected 12 but found 13 (indentation)
126:23 warning truthy value should be one of [false, true] (truthy)
151:20 warning truthy value should be one of [false, true] (truthy)
177:19 warning truthy value should be one of [false, true] (truthy)
197:25 warning truthy value should be one of [false, true] (truthy)
```
2019-08-06 16:51:42 +02:00
|
|
|
warning_messages:
|
|
|
|
v1.0.0:
|
|
|
|
mute_critical: true
|
|
|
|
mute_upcoming: true
|
2017-01-09 22:13:43 +01:00
|
|
|
# Use external repository instead the default (only Ubuntu family)
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./test/integration/default/inspec.yml
1:1 warning missing document start "---" (document-start)
pillar.example
3:1 warning missing document start "---" (document-start)
7:22 warning truthy value should be one of [false, true] (truthy)
8:22 warning truthy value should be one of [false, true] (truthy)
10:22 warning truthy value should be one of [false, true] (truthy)
16:17 warning truthy value should be one of [false, true] (truthy)
41:12 error wrong indentation: expected 10 but found 11 (indentation)
46:27 warning truthy value should be one of [false, true] (truthy)
70:18 warning truthy value should be one of [false, true] (truthy)
74:19 warning truthy value should be one of [false, true] (truthy)
83:22 warning truthy value should be one of [false, true] (truthy)
97:22 warning truthy value should be one of [false, true] (truthy)
107:89 error line too long (93 > 88 characters) (line-length)
118:20 warning truthy value should be one of [false, true] (truthy)
126:14 error wrong indentation: expected 12 but found 13 (indentation)
126:23 warning truthy value should be one of [false, true] (truthy)
151:20 warning truthy value should be one of [false, true] (truthy)
177:19 warning truthy value should be one of [false, true] (truthy)
197:25 warning truthy value should be one of [false, true] (truthy)
```
2019-08-06 16:51:42 +02:00
|
|
|
use_external_repo: true
|
2017-01-09 22:13:43 +01:00
|
|
|
# Set the external repository name (valid only if use_external_repo is not none)
|
|
|
|
external_repo_name: 'ondrej/php'
|
2018-10-10 16:42:28 +02:00
|
|
|
# Use Software Collections Repository offering PHP 5.4, 5.5, 5.6, 7.0 and 7.1
|
|
|
|
# https://www.softwarecollections.org/en/ for more information.
|
2019-08-07 17:01:55 +02:00
|
|
|
# SCL is only supported on RHEL and CentOS
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./test/integration/default/inspec.yml
1:1 warning missing document start "---" (document-start)
pillar.example
3:1 warning missing document start "---" (document-start)
7:22 warning truthy value should be one of [false, true] (truthy)
8:22 warning truthy value should be one of [false, true] (truthy)
10:22 warning truthy value should be one of [false, true] (truthy)
16:17 warning truthy value should be one of [false, true] (truthy)
41:12 error wrong indentation: expected 10 but found 11 (indentation)
46:27 warning truthy value should be one of [false, true] (truthy)
70:18 warning truthy value should be one of [false, true] (truthy)
74:19 warning truthy value should be one of [false, true] (truthy)
83:22 warning truthy value should be one of [false, true] (truthy)
97:22 warning truthy value should be one of [false, true] (truthy)
107:89 error line too long (93 > 88 characters) (line-length)
118:20 warning truthy value should be one of [false, true] (truthy)
126:14 error wrong indentation: expected 12 but found 13 (indentation)
126:23 warning truthy value should be one of [false, true] (truthy)
151:20 warning truthy value should be one of [false, true] (truthy)
177:19 warning truthy value should be one of [false, true] (truthy)
197:25 warning truthy value should be one of [false, true] (truthy)
```
2019-08-06 16:51:42 +02:00
|
|
|
use_scl_repo: true
|
2018-10-10 16:42:28 +02:00
|
|
|
# Which PHP version from the SCL repos to use
|
|
|
|
scl_php_version: 71
|
2014-08-22 09:38:56 +02:00
|
|
|
# Set the MongoDB driver version. You can specify (optionally) the driver version
|
|
|
|
# when you add the php.mongo formula to your execution list
|
|
|
|
mongo_version: "1.5.5"
|
2019-08-07 17:01:55 +02:00
|
|
|
# set the version of php to be used
|
|
|
|
version: "7.3"
|
|
|
|
# can be a list of versions :
|
|
|
|
# version:
|
|
|
|
# - "7.3"
|
|
|
|
# - "7.2"
|
|
|
|
|
|
|
|
# set the version for the Debian alternatives system, when using a list of versions,
|
|
|
|
# php:version is used otherwise.
|
|
|
|
alternatives_version: "7.3"
|
|
|
|
|
|
|
|
# this section contains mostly grain filtered data, while overrides
|
|
|
|
# are possible in the pillar for unique cases, if your OS is not
|
|
|
|
# represented, please consider adding it to the map.jinja for
|
|
|
|
# upstream inclusion
|
|
|
|
lookup:
|
|
|
|
enable_php_repo: centos-sclo-rh-testing
|
|
|
|
# package definitions, these can be strings, lists of strings, or
|
|
|
|
# lists of dictionaries
|
|
|
|
pkgs:
|
|
|
|
memcached: php5-memcached
|
|
|
|
# ensures both will be installed
|
|
|
|
curl:
|
|
|
|
- php-common
|
|
|
|
- curl
|
|
|
|
# a dictionary can be used in more complex cases where you want
|
|
|
|
# to pass forward special arguments to the pkg.installed call
|
|
|
|
# you MUST include the name argument for this to work
|
2014-06-06 20:53:36 +02:00
|
|
|
cli:
|
2019-08-07 17:01:55 +02:00
|
|
|
-
|
|
|
|
name: php-cli
|
|
|
|
fromrepo: my-specialrepo
|
|
|
|
-
|
|
|
|
name: php-common
|
|
|
|
skip_verify: true
|
|
|
|
|
|
|
|
# php-fpm os-specific settings
|
2014-06-06 20:53:36 +02:00
|
|
|
fpm:
|
2019-08-07 17:01:55 +02:00
|
|
|
conf: /location/of/php-fpm/config.conf
|
|
|
|
ini: /location/of/php-fpm/php.ini
|
|
|
|
pools: /location/of/php-fpm/pool.d
|
|
|
|
service: name-of-php5-fpm-service
|
2014-06-06 20:53:36 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
# the default content of the php5-fpm main config file
|
|
|
|
defaults:
|
|
|
|
global:
|
|
|
|
pid: /var/run/php5-fpm.pid
|
|
|
|
|
|
|
|
# php-cli os-specific settings
|
2014-06-06 21:06:49 +02:00
|
|
|
cli:
|
2019-08-07 17:01:55 +02:00
|
|
|
ini: /location/of/php-cli/php.ini
|
|
|
|
|
|
|
|
# php-fpm settings
|
|
|
|
fpm:
|
|
|
|
|
|
|
|
# settings for the php-fpm service
|
|
|
|
service:
|
|
|
|
# if true, enables the php-fpm service, if false disables it
|
|
|
|
enabled: true
|
|
|
|
# additional arguments passed forward to
|
|
|
|
# service.enabled/disabled
|
|
|
|
opts:
|
|
|
|
reload: true
|
|
|
|
|
|
|
|
# settings for the relevant php-fpm configuration files
|
|
|
|
config:
|
|
|
|
|
|
|
|
# options to manage the php.ini file used by php-fpm
|
2014-06-06 21:06:49 +02:00
|
|
|
ini:
|
2019-08-07 17:01:55 +02:00
|
|
|
# arguments passed through to file.managed
|
2014-06-06 21:06:49 +02:00
|
|
|
opts:
|
2019-08-07 17:01:55 +02:00
|
|
|
recurse: true
|
|
|
|
# php.ini file contents that will be merged with the
|
|
|
|
# defaults in php.ini.defaults. See php.ini.defaults for
|
|
|
|
# syntax guidelines.
|
2014-06-06 21:06:49 +02:00
|
|
|
settings:
|
|
|
|
PHP:
|
|
|
|
engine: 'Off'
|
2019-08-07 17:01:55 +02:00
|
|
|
extension_dir: '/usr/lib/php/modules/'
|
|
|
|
extension: [pdo_mysql.so, iconv.so, openssl.so]
|
2014-06-06 21:06:49 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
# options to manage the php-fpm conf file
|
|
|
|
conf:
|
|
|
|
# arguments passed through to file.managed
|
|
|
|
opts:
|
|
|
|
recurse: true
|
|
|
|
# php-fpm conf file contents that will be merged with
|
|
|
|
# php.lookup.fpm.defaults. See php.ini.defaults for
|
|
|
|
# ini-style syntax guidelines.
|
2015-10-24 00:34:18 +02:00
|
|
|
settings:
|
2019-08-07 17:01:55 +02:00
|
|
|
global:
|
|
|
|
pid: /var/run/php-fpm/special-pid.file
|
2015-10-24 00:34:18 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
# settings for fpm-pools
|
|
|
|
pools:
|
|
|
|
# defaults will apply for each pools settings and can be overwritten
|
|
|
|
# by pool settings
|
2014-06-06 21:06:49 +02:00
|
|
|
defaults:
|
2019-08-07 17:01:55 +02:00
|
|
|
user: nginx
|
|
|
|
group: nginx
|
|
|
|
listen: /var/run/php-fpm-default.sock
|
|
|
|
|
|
|
|
# name of the pool file to be managed, this will be appended
|
|
|
|
# to the path specified in php.lookup.fpm.pools
|
|
|
|
'mypool.conf':
|
|
|
|
# If true, the pool file will be managed, if false it will be
|
|
|
|
# absent
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# Overwrite the filename for ext_pillar that doesn't allow
|
|
|
|
# dots in fields names.
|
|
|
|
filname: my_other_name.conf
|
|
|
|
|
|
|
|
# arguments passed forward to file.managed or file.absent
|
|
|
|
opts:
|
|
|
|
replace: false
|
|
|
|
|
|
|
|
# pool file contents. See php.ini.defaults for ini-style
|
|
|
|
# syntax guidelines.
|
|
|
|
settings:
|
|
|
|
myapp:
|
|
|
|
user: www-data
|
|
|
|
group: www-data
|
|
|
|
listen: /var/run/php5-fpm-myapp.sock
|
|
|
|
listen.owner: www-data
|
|
|
|
listen.group: www-data
|
|
|
|
listen.mode: 0660
|
|
|
|
pm: dynamic
|
|
|
|
pm.max_children: 5
|
|
|
|
pm.start_servers: 2
|
|
|
|
pm.min_spare_servers: 1
|
|
|
|
pm.max_spare_servers: 3
|
|
|
|
'php_admin_value[memory_limit]': 300M
|
|
|
|
|
|
|
|
# php-cli settings
|
|
|
|
cli:
|
|
|
|
# settings to manage the cli's php.ini
|
|
|
|
ini:
|
|
|
|
# opts passed forward directly to file.managed
|
|
|
|
opts:
|
|
|
|
replace: false
|
|
|
|
# contents of the php.ini file that are merged with defaults
|
|
|
|
# from php.ini.defaults. See php.ini.defaults for ini-style
|
|
|
|
# syntax guidelines
|
|
|
|
settings:
|
2014-06-06 21:06:49 +02:00
|
|
|
PHP:
|
2019-08-07 17:01:55 +02:00
|
|
|
engine: 'Off'
|
|
|
|
|
|
|
|
# php-xcache settings
|
|
|
|
xcache:
|
|
|
|
ini:
|
|
|
|
opts: {}
|
|
|
|
# contents of the xcache.ini file that are merged with defaults
|
|
|
|
# from php.xcache.ini.defaults. See php.ini.defaults for ini-style
|
|
|
|
settings:
|
|
|
|
xcache:
|
|
|
|
xcache.size: 90M
|
|
|
|
|
|
|
|
# global php.ini settings
|
|
|
|
ini:
|
|
|
|
# Default php.ini contents. These follow a strict format. The top-
|
|
|
|
# level dict keys form ini group headings. Nested key/value
|
|
|
|
# pairs represent setting=value statements. If a value is a list,
|
|
|
|
# its contents will be joined by commas in final rendering.
|
|
|
|
defaults:
|
|
|
|
PHP:
|
|
|
|
engine: 'On'
|
|
|
|
output_buffering: 4096
|
|
|
|
disable_functions:
|
|
|
|
- pcntl_alarm
|
|
|
|
- pcntl_fork
|
|
|
|
- pcntl_wait
|
|
|
|
'CLI Server':
|
|
|
|
cli_server_color: 'On'
|
|
|
|
|
|
|
|
# List of modules to install via php.modules
|
|
|
|
modules:
|
|
|
|
# Calls `php.<name>` if available, or try to install the matching
|
|
|
|
# packages that can be set via from php:lookup:pkgs
|
|
|
|
- cli
|
|
|
|
- fpm
|
|
|
|
- curl
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
# When using php.apache2 on FreeBSD:
|
|
|
|
# Set this to false if you're not using apache-formula
|
|
|
|
use_apache_formula: true
|