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.

пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 7 година
12345678910111213141516171819202122232425262728293031
  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. - watch_in:
  10. - module: apache-restart
  11. - require_in:
  12. - module: apache-restart
  13. - module: apache-reload
  14. - service: apache
  15. {% if 'conf_mod_wsgi' in apache %}
  16. {{ apache.conf_mod_wsgi }}:
  17. file.uncomment:
  18. - regex: LoadModule
  19. - onlyif: test -f {{ apache.conf_mod_wsgi }}
  20. - require:
  21. - pkg: mod_wsgi
  22. - watch_in:
  23. - module: apache-restart
  24. - require_in:
  25. - module: apache-restart
  26. - module: apache-reload
  27. - service: apache
  28. {% endif %}