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.

21 lines
604B

  1. # Manages the php cli main ini file
  2. {%- set tplroot = tpldir.split('/')[0] %}
  3. {%- from tplroot ~ "/map.jinja" import php with context %}
  4. {%- from tplroot ~ "/ini.jinja" import php_ini %}
  5. {%- set settings = php.xcache.ini.defaults %}
  6. {%- for key, value in php.xcache.ini.settings.items() %}
  7. {%- if settings[key] is defined %}
  8. {%- do settings[key].update(value) %}
  9. {%- else %}
  10. {%- do settings.update({key: value}) %}
  11. {%- endif %}
  12. {%- endfor %}
  13. php_xcache_ini:
  14. {{ php_ini(php.lookup.xcache.ini,
  15. 'php_xcache_ini',
  16. php.xcache.ini.opts,
  17. settings
  18. ) }}