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.

29 lines
824B

  1. {%- macro php_block(section, settings) %}
  2. {%- if settings is number or settings is string %}
  3. {{ section }} = {{ settings }}
  4. {%- else %}
  5. [{{ section }}]
  6. {%- for setting, value in settings.items() -%}
  7. {%- if value is number or value is string %}
  8. {{ setting }} = {{ value }}
  9. {%- elif value is iterable -%}
  10. {%- if setting == 'error_reporting' %}
  11. {{ setting }} = {{ value|join(" & ") }}
  12. {%- else %}
  13. {{ setting }} = {{ value|join(",") }}
  14. {%- endif -%}
  15. {%- endif %}
  16. {%- endfor -%}
  17. {%- endif -%}
  18. {%- endmacro -%}
  19. ; PHP configuration file.
  20. ;
  21. ; **** DO NOT EDIT THIS FILE ****
  22. ;
  23. ; This file is managed by Salt
  24. {%- for section, settings in config.items() -%}
  25. {{ php_block(section, settings) }}
  26. {%- endfor -%}