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 888B

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