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 години
123456789101112131415161718192021222324252627
  1. # Manages the php-fpm main ini file
  2. {% from 'php/ng/map.jinja' import php with context %}
  3. {% from "php/ng/macro.jinja" import sls_block, serialize %}
  4. {% set ini_settings = php.ini.defaults %}
  5. {% do ini_settings.update(php.fpm.config.ini.settings) %}
  6. {% set conf_settings = php.lookup.fpm.defaults %}
  7. {% do conf_settings.update(php.fpm.config.conf.settings) %}
  8. php_fpm_ini_config:
  9. file.managed:
  10. {{ sls_block(php.fpm.config.ini.opts) }}
  11. - name: {{ php.lookup.fpm.ini }}
  12. - source: salt://php/ng/files/php.ini
  13. - template: jinja
  14. - context:
  15. config: {{ serialize(ini_settings) }}
  16. php_fpm_conf_config:
  17. file.managed:
  18. {{ sls_block(php.fpm.config.conf.opts) }}
  19. - name: {{ php.lookup.fpm.conf }}
  20. - source: salt://php/ng/files/php.ini
  21. - template: jinja
  22. - context:
  23. config: {{ serialize(conf_settings) }}