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

31 行
695B

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. - apache.mod_proxy
  5. {% if grains['os_family']=="Debian" %}
  6. a2enmod proxy_http:
  7. cmd.run:
  8. - unless: ls /etc/apache2/mods-enabled/proxy_http.load
  9. - order: 225
  10. - require:
  11. - pkg: apache
  12. - cmd: a2enmod proxy
  13. - watch_in:
  14. - module: apache-restart
  15. {% elif grains['os_family']=="FreeBSD" %}
  16. {{ apache.modulesdir }}/040_mod_proxy_http.conf:
  17. file.managed:
  18. - source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_proxy_http.conf.jinja
  19. - mode: 644
  20. - template: jinja
  21. - require:
  22. - pkg: apache
  23. - watch_in:
  24. - module: apache-restart
  25. {% endif %}