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.

45 line
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