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.

42 lines
697B

  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. apache-reload:
  12. module:
  13. - order: 420
  14. apache-restart:
  15. module:
  16. - order: 425
  17. a2dissite 000-default:
  18. cmd.run:
  19. - order: 225
  20. - onlyif: ls /etc/apache2/sites-enabled/000-default
  21. - watch_in:
  22. - module: apache-reload
  23. - require:
  24. - pkg: apache
  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