apache-formula/apache/mod_wsgi.sls
2013-08-13 16:52:36 -06:00

19 lines
358 B
Plaintext

{% set pkg = salt['grains.filter_by']({
'Debian': {'name': 'libapache2-mod-wsgi'},
'RedHat': {'name': 'mod_wsgi'},
}) %}
mod_wsgi:
pkg:
- installed
- name: {{ pkg.name }}
{% if grains.get('os_family') == 'RedHat' %}
/etc/httpd/conf.d/wsgi.conf:
file:
- uncomment
- regex: LoadModule
- require:
- pkg: mod_wsgi
{% endif %}