apache-formula/apache/mod_wsgi.sls

32 lines
679 B
Plaintext
Raw Normal View History

{% from "apache/map.jinja" import apache with context %}
2013-08-13 16:51:38 -06:00
2013-08-26 20:45:57 -06:00
include:
- apache
2013-08-13 16:51:38 -06:00
mod_wsgi:
2014-09-25 11:48:36 -05:00
pkg.installed:
2013-08-26 20:45:38 -06:00
- name: {{ apache.mod_wsgi }}
2013-08-26 20:45:57 -06:00
- require:
- pkg: apache
- watch_in:
- module: apache-restart
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
2013-08-13 16:51:38 -06:00
{% if 'conf_mod_wsgi' in apache %}
{{ apache.conf_mod_wsgi }}:
2014-09-25 11:48:36 -05:00
file.uncomment:
2013-08-13 16:51:38 -06:00
- regex: LoadModule
- onlyif: test -f {{ apache.conf_mod_wsgi }}
2013-08-13 16:51:38 -06:00
- require:
- pkg: mod_wsgi
- watch_in:
- module: apache-restart
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
2017-04-06 15:11:32 +03:00
{% endif %}