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