Saltstack Official Apache Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

43 rindas
858B

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. {{ apache.configfile }}:
  5. file.managed:
  6. - template: jinja
  7. - source:
  8. - salt://apache/files/{{ salt['grains.get']('os_family') }}/apache.config.jinja
  9. - require:
  10. - pkg: apache
  11. - watch_in:
  12. - service: apache
  13. {{ apache.vhostdir }}:
  14. file.directory:
  15. - require:
  16. - pkg: apache
  17. - watch_in:
  18. - service: apache
  19. {% if grains['os_family']=="Debian" %}
  20. /etc/apache2/envvars:
  21. file.managed:
  22. - template: jinja
  23. - source:
  24. - salt://apache/files/Debian/envvars.jinja
  25. - require:
  26. - pkg: apache
  27. - watch_in:
  28. - service: apache
  29. {% endif %}
  30. {% if grains['os_family']=="RedHat" %}
  31. /etc/httpd/conf.d/welcome.conf:
  32. file.absent:
  33. - require:
  34. - pkg: apache
  35. - watch_in:
  36. - service: apache
  37. {% endif %}