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

45 行
888B

  1. {% from "apache/map.jinja" import apache with context %}
  2. {% if grains['os_family']=="Debian" %}
  3. include:
  4. - apache
  5. - apache.register_site
  6. extend:
  7. apache:
  8. pkg:
  9. - order: 175
  10. service:
  11. - order: 455
  12. apache-reload:
  13. module:
  14. - order: 420
  15. apache-restart:
  16. module:
  17. - order: 425
  18. a2dissite 000-default{{ apache.confext }}:
  19. cmd.run:
  20. - onlyif: test -f /etc/apache2/sites-enabled/000-default{{ apache.confext }}
  21. - watch_in:
  22. - module: apache-reload
  23. - require_in:
  24. - module: apache-restart
  25. - module: apache-reload
  26. - service: apache
  27. - require:
  28. - pkg: apache
  29. /etc/apache2/sites-available/{{ apache.default_site }}:
  30. file.absent:
  31. - require:
  32. - pkg: apache
  33. /etc/apache2/sites-available/{{ apache.default_site_ssl }}:
  34. file.absent:
  35. - require:
  36. - pkg: apache
  37. {% endif %} #END: os = debian