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.

20 lines
379B

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. mod_wsgi:
  5. pkg.installed:
  6. - name: {{ apache.mod_wsgi }}
  7. - require:
  8. - pkg: apache
  9. {% if 'conf_mod_wsgi' in apache %}
  10. {{ apache.conf_mod_wsgi }}:
  11. file.uncomment:
  12. - regex: LoadModule
  13. - onlyif: test -f {{ apache.conf_mod_wsgi }}
  14. - require:
  15. - pkg: mod_wsgi
  16. {% endif %}