19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
{% from "apache/map.jinja" import apache with context %}
|
|
|
|
include:
|
|
- apache
|
|
|
|
mod_wsgi:
|
|
pkg.installed:
|
|
- name: {{ apache.mod_wsgi }}
|
|
- require:
|
|
- pkg: apache
|
|
|
|
{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %}
|
|
/etc/httpd/conf.d/wsgi.conf:
|
|
file.uncomment:
|
|
- regex: LoadModule
|
|
- require:
|
|
- pkg: mod_wsgi
|
|
{% endif %}
|