Saltstack Official PHP Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

config.sls 978B

1234567891011121314151617181920212223242526272829303132
  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