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 година
123456789101112131415161718192021222324252627282930313233
  1. {%- macro php_block(config) %}
  2. {% for sections in config %}
  3. {%- for section, settings in sections.items() -%}
  4. {%- if settings is number or settings is string %}
  5. {{ section }} = {{ settings }}
  6. {%- else %}
  7. [{{ section }}]
  8. {%- for setting in settings|sort -%}
  9. {%- for key, value in setting.items() %}
  10. {%- if value is number or value is string %}
  11. {{ key }} = {{ value }}
  12. {%- elif value is iterable -%}
  13. {%- if key == 'error_reporting' %}
  14. {{ key }} = {{ value|join(" & ") }}
  15. {%- elif key == 'extension' %}
  16. {{ key }} = {{ value|join("\n extension = ") }}
  17. {%- else %}
  18. {{ key }} = {{ value|join(",") }}
  19. {%- endif -%}
  20. {%- endif -%}
  21. {%- endfor -%}
  22. {%- endfor -%}
  23. {%- endif -%}
  24. {%- endfor -%}
  25. {% endfor %}
  26. {%- endmacro -%}
  27. ; PHP configuration file.
  28. ;
  29. ; **** DO NOT EDIT THIS FILE ****
  30. ;
  31. ; This file is managed by Salt via {{ source }}
  32. {{ php_block(config) }}