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.

19 line
594B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- php.ini management macro. #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- from tplroot ~ "/macro.jinja" import sls_block, serialize %}
  6. {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
  7. {% macro php_ini(filename, tofs_lookup, opts={}, settings={}) %}
  8. file.managed:
  9. {{ sls_block(opts) }}
  10. - name: {{ filename }}
  11. - source: {{ files_switch(['php.ini'],
  12. tofs_lookup
  13. ) }}
  14. - template: jinja
  15. - context:
  16. config: {{ serialize(odict(settings)) }}
  17. {%- endmacro -%}