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.

33 line
978B

  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. include:
  5. - php.ng.deprecated
  6. {% set ini_settings = php.ini.defaults %}
  7. {% for key, value in php.fpm.config.ini.settings.items() %}
  8. {% if ini_settings[key] is defined %}
  9. {% do ini_settings[key].update(value) %}
  10. {% else %}
  11. {% do ini_settings.update({key: value}) %}
  12. {% endif %}
  13. {% endfor %}
  14. {% set conf_settings = php.lookup.fpm.defaults %}
  15. {% do conf_settings.update(php.fpm.config.conf.settings) %}
  16. php_fpm_ini_config:
  17. {{ php_ini(php.lookup.fpm.ini, php.fpm.config.ini.opts, ini_settings) }}
  18. php_fpm_conf_config:
  19. {{ php_ini(php.lookup.fpm.conf, php.fpm.config.conf.opts, conf_settings) }}
  20. {{ php.lookup.fpm.pools }}:
  21. file.directory:
  22. - name: {{ php.lookup.fpm.pools }}
  23. - user: {{ php.lookup.fpm.user }}
  24. - group: {{ php.lookup.fpm.group }}
  25. - file_mode: 755
  26. - make_dirs: True