2014-06-06 19:14:44 +02:00
|
|
|
## php.ng pillar examples
|
|
|
|
|
|
|
|
php:
|
2017-01-09 22:13:43 +01:00
|
|
|
# Use external repository instead the default (only Ubuntu family)
|
|
|
|
use_external_repo: True
|
|
|
|
# Set the external repository name (valid only if use_external_repo is not none)
|
|
|
|
external_repo_name: 'ondrej/php'
|
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"
|
2014-06-06 19:14:44 +02:00
|
|
|
ng:
|
|
|
|
# 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:
|
|
|
|
|
2015-01-15 17:39:52 +01:00
|
|
|
# package definitions, these can be strings, lists of strings, or
|
2014-06-06 20:53:36 +02:00
|
|
|
# lists of dictionaries
|
2014-06-06 19:14:44 +02:00
|
|
|
pkgs:
|
|
|
|
memcached: php5-memcached
|
|
|
|
# ensures both will be installed
|
2016-07-12 19:19:36 +02:00
|
|
|
curl:
|
2014-06-06 19:14:44 +02:00
|
|
|
- php-common
|
2016-07-12 19:19:36 +02:00
|
|
|
- curl
|
2014-06-06 19:14:44 +02:00
|
|
|
# a dictionary can be used in more complex cases where you want
|
|
|
|
# to pass forward special arguments to the pkg.installed call
|
2014-06-06 20:53:36 +02:00
|
|
|
# you MUST include the name argument for this to work
|
2014-06-06 19:14:44 +02:00
|
|
|
cli:
|
2014-06-06 20:53:36 +02:00
|
|
|
-
|
|
|
|
name: php-cli
|
2014-06-06 19:14:44 +02:00
|
|
|
fromrepo: my-specialrepo
|
2014-06-06 20:53:36 +02:00
|
|
|
-
|
|
|
|
name: php-common
|
|
|
|
skip_verify: True
|
2014-06-06 19:14:44 +02:00
|
|
|
|
|
|
|
# php-fpm os-specific settings
|
|
|
|
fpm:
|
2014-06-06 20:53:36 +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 19:14:44 +02:00
|
|
|
# the default content of the php5-fpm main config file
|
|
|
|
defaults:
|
|
|
|
global:
|
|
|
|
pid: /var/run/php5-fpm.pid
|
2014-06-06 20:53:36 +02:00
|
|
|
|
|
|
|
# php-cli os-specific settings
|
|
|
|
cli:
|
|
|
|
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
|
|
|
|
ini:
|
|
|
|
# arguments passed through to file.managed
|
|
|
|
opts:
|
|
|
|
recurse: True
|
|
|
|
# php.ini file contents that will be merged with the
|
|
|
|
# defaults in php.ng.ini.defaults. See php.ng.ini.defaults for
|
|
|
|
# syntax guidelines.
|
|
|
|
settings:
|
|
|
|
PHP:
|
|
|
|
engine: 'Off'
|
2015-06-20 20:35:21 +02:00
|
|
|
extension_dir: '/usr/lib/php/modules/'
|
|
|
|
extension: [pdo_mysql.so, iconv.so, openssl.so]
|
2014-06-06 20:53:36 +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.ng.lookup.fpm.defaults. See php.ng.ini.defaults for
|
|
|
|
# ini-style syntax guidelines.
|
|
|
|
settings:
|
|
|
|
global:
|
|
|
|
pid: /var/run/php-fpm/special-pid.file
|
|
|
|
|
|
|
|
# settings for fpm-pools
|
|
|
|
pools:
|
2017-10-17 10:49:42 +02:00
|
|
|
# defaults will apply for each pools settings and can be overwritten by pool settings
|
|
|
|
defaults:
|
|
|
|
user: nginx
|
|
|
|
group: nginx
|
|
|
|
listen: /var/run/php-fpm-default.sock
|
|
|
|
|
2014-06-06 20:53:36 +02:00
|
|
|
# name of the pool file to be managed, this will be appended
|
|
|
|
# to the path specified in php.ng.lookup.fpm.pools
|
|
|
|
'mypool.conf':
|
|
|
|
# If true, the pool file will be managed, if False it will be
|
|
|
|
# absent
|
|
|
|
enabled: True
|
2016-07-12 19:19:36 +02:00
|
|
|
|
|
|
|
# Overwrite the filename for ext_pillar that doesn't allow
|
|
|
|
# dots in fields names.
|
|
|
|
filname: my_other_name.conf
|
|
|
|
|
2014-06-06 20:53:36 +02:00
|
|
|
# arguments passed forward to file.managed or file.absent
|
|
|
|
opts:
|
|
|
|
replace: False
|
|
|
|
|
|
|
|
# pool file contents. See php.ng.ini.defaults for ini-style
|
|
|
|
# syntax guidelines.
|
|
|
|
settings:
|
|
|
|
myapp:
|
|
|
|
user: www-data
|
|
|
|
group: www-data
|
|
|
|
listen: /var/run/php5-fpm-myapp.sock
|
2015-06-20 20:35:21 +02:00
|
|
|
listen.owner: www-data
|
|
|
|
listen.group: www-data
|
|
|
|
listen.mode: 0660
|
2014-06-06 20:53:36 +02:00
|
|
|
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
|
2014-06-06 21:06:49 +02:00
|
|
|
|
|
|
|
# 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.ng.ini.defaults. See php.ng.ini.defaults for ini-style
|
|
|
|
# syntax guidelines
|
|
|
|
settings:
|
|
|
|
PHP:
|
|
|
|
engine: 'Off'
|
|
|
|
|
2015-10-24 00:34:18 +02:00
|
|
|
# php-xcache settings
|
|
|
|
xcache:
|
|
|
|
ini:
|
|
|
|
opts: {}
|
|
|
|
# contents of the xcache.ini file that are merged with defaults
|
|
|
|
# from php.xcache.ini.defaults. See php.ng.ini.defaults for ini-style
|
|
|
|
settings:
|
|
|
|
xcache:
|
|
|
|
xcache.size: 90M
|
|
|
|
|
2014-06-06 21:06:49 +02:00
|
|
|
# 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'
|
2018-01-30 14:56:35 +01:00
|
|
|
|
|
|
|
# When using php.ng.apache2 on FreeBSD:
|
|
|
|
# Set this to False if you're not using apache-formula
|
|
|
|
use_apache_formula: True
|