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.

35 line
703B

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. mod-xsendfile:
  5. pkg.installed:
  6. - name: {{ apache.mod_xsendfile }}
  7. - order: 180
  8. - require:
  9. - pkg: apache
  10. - watch_in:
  11. - module: apache-restart
  12. - require_in:
  13. - module: apache-restart
  14. - module: apache-reload
  15. - service: apache
  16. {% if grains['os_family']=="Debian" %}
  17. a2enmod xsendfile:
  18. cmd.run:
  19. - order: 225
  20. - unless: ls /etc/apache2/mods-enabled/xsendfile.load
  21. - require:
  22. - pkg: mod-xsendfile
  23. - watch_in:
  24. - module: apache-restart
  25. - require_in:
  26. - module: apache-restart
  27. - module: apache-reload
  28. - service: apache
  29. {% endif %}