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

45 行
695B

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