Saltstack Official Apache 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.

44 lines
687B

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