2014-05-20 21:59:25 +02:00
|
|
|
# Manages the php-fpm main ini file
|
2014-05-22 20:38:27 +02:00
|
|
|
{% from 'php/ng/map.jinja' import php with context %}
|
|
|
|
{% from "php/ng/macro.jinja" import sls_block, serialize %}
|
2014-05-20 21:59:25 +02:00
|
|
|
|
|
|
|
{% set ini_settings = php.ini.defaults %}
|
|
|
|
{% do ini_settings.update(php.fpm.config.ini.settings) %}
|
|
|
|
|
|
|
|
{% set conf_settings = php.lookup.fpm.defaults %}
|
|
|
|
{% do conf_settings.update(php.fpm.config.conf.settings) %}
|
|
|
|
|
|
|
|
php_fpm_ini_config:
|
|
|
|
file.managed:
|
|
|
|
{{ sls_block(php.fpm.config.ini.opts) }}
|
|
|
|
- name: {{ php.lookup.fpm.ini }}
|
|
|
|
- source: salt://php/ng/files/php.ini
|
|
|
|
- template: jinja
|
|
|
|
- context:
|
2014-05-22 20:38:27 +02:00
|
|
|
config: {{ serialize(ini_settings) }}
|
2014-05-20 21:59:25 +02:00
|
|
|
|
|
|
|
php_fpm_conf_config:
|
|
|
|
file.managed:
|
|
|
|
{{ sls_block(php.fpm.config.conf.opts) }}
|
|
|
|
- name: {{ php.lookup.fpm.conf }}
|
|
|
|
- source: salt://php/ng/files/php.ini
|
|
|
|
- template: jinja
|
|
|
|
- context:
|
2014-05-22 20:38:27 +02:00
|
|
|
config: {{ serialize(conf_settings) }}
|