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.

debian_full.sls 767B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. - cmd: apache-reload
  18. - require:
  19. - pkg: apache
  20. apache-reload:
  21. cmd.wait:
  22. - name: service apache2 reload
  23. - order: 420
  24. apache-restart:
  25. cmd.wait:
  26. - name: service apache2 restart
  27. - order: 425
  28. /etc/apache2/sites-available/default:
  29. file.absent:
  30. - order: 230
  31. - require:
  32. - pkg: apache
  33. /etc/apache2/sites-available/default-ssl:
  34. file.absent:
  35. - order: 230
  36. - require:
  37. - pkg: apache
  38. {% endif %} #END: os = debian