Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
721B

  1. # Manages the php-fpm main ini file
  2. {% from 'php/ng/map.jinja' import php with context %}
  3. {% from "php/ng/ini.jinja" import php_ini %}
  4. {% set ini_settings = php.ini.defaults %}
  5. {% for key, value in php.fpm.config.ini.settings.iteritems() %}
  6. {% if ini_settings[key] is defined %}
  7. {% do ini_settings[key].update(value) %}
  8. {% else %}
  9. {% do ini_settings.update({key: value}) %}
  10. {% endif %}
  11. {% endfor %}
  12. {% set conf_settings = php.lookup.fpm.defaults %}
  13. {% do conf_settings.update(php.fpm.config.conf.settings) %}
  14. php_fpm_ini_config:
  15. {{ php_ini(php.lookup.fpm.ini, php.fpm.config.ini.opts, ini_settings) }}
  16. php_fpm_conf_config:
  17. {{ php_ini(php.lookup.fpm.conf, php.fpm.config.conf.opts, conf_settings) }}