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
|
2013-08-14 00:51:38 +02:00
|
|
|
|
2017-03-28 16:53:50 +02:00
|
|
|
{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %}
|
2013-08-14 00:51:38 +02:00
|
|
|
/etc/httpd/conf.d/wsgi.conf:
|
2014-09-25 18:48:36 +02:00
|
|
|
file.uncomment:
|
2013-08-14 00:51:38 +02:00
|
|
|
- regex: LoadModule
|
|
|
|
- require:
|
|
|
|
- pkg: mod_wsgi
|
|
|
|
{% endif %}
|