Saltstack Official PHP Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718
  1. {% from "php/ng/map.jinja" import php with context %}
  2. {% set state = 'apache2' %}
  3. {% include "php/ng/installed.jinja" %}
  4. {% if grains['os_family'] == "FreeBSD" %}
  5. {{ php.lookup.apache2.module_config }}:
  6. file.managed:
  7. - source: salt://php/ng/apache2/files/mod_php.conf.jinja
  8. - template: jinja
  9. {% if salt['pillar.get']('php:ng:use_apache_formula', True) %}
  10. - makedirs: true
  11. - require_in:
  12. - sls: apache
  13. - watch_in:
  14. - module: apache-restart
  15. {% endif %} #END: use apache formula
  16. {% endif %} #END: os = debian