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.

27 lines
566B

  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. {% if grains['os_family']=="Debian" %}
  14. /etc/apache2/envvars:
  15. file.managed
  16. - template: jinja
  17. - source:
  18. - salt://apache/files/debian/envvars.jinja
  19. - require:
  20. - pkg: apache
  21. - watch_in:
  22. - service: apache
  23. {% endif %}