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.

пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
1234567891011121314151617181920212223242526272829
  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) }}
  18. {{ php.lookup.fpm.pools }}:
  19. file.directory:
  20. - name: {{ php.lookup.fpm.pools }}
  21. - user: root
  22. - group: root
  23. - file_mode: 755
  24. - make_dirs: True