Added mod_wsgi to package-map
This commit is contained in:
parent
66683570e9
commit
3f8a1edb97
@ -1,12 +1,9 @@
|
|||||||
{% set pkg = salt['grains.filter_by']({
|
{% from "apache/package-map.jinja" import apache with context %}
|
||||||
'Debian': {'name': 'libapache2-mod-wsgi'},
|
|
||||||
'RedHat': {'name': 'mod_wsgi'},
|
|
||||||
}) %}
|
|
||||||
|
|
||||||
mod_wsgi:
|
mod_wsgi:
|
||||||
pkg:
|
pkg:
|
||||||
- installed
|
- installed
|
||||||
- name: {{ pkg.name }}
|
- name: {{ apache.mod_wsgi }}
|
||||||
|
|
||||||
{% if grains.get('os_family') == 'RedHat' %}
|
{% if grains.get('os_family') == 'RedHat' %}
|
||||||
/etc/httpd/conf.d/wsgi.conf:
|
/etc/httpd/conf.d/wsgi.conf:
|
||||||
|
@ -3,10 +3,12 @@
|
|||||||
'server': 'apache2',
|
'server': 'apache2',
|
||||||
'service': 'apache2',
|
'service': 'apache2',
|
||||||
'conf': '/etc/apache2/conf.d',
|
'conf': '/etc/apache2/conf.d',
|
||||||
|
'mod_wsgi': 'libapache2-mod-wsgi',
|
||||||
},
|
},
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
'server': 'httpd',
|
'server': 'httpd',
|
||||||
'service': 'httpd',
|
'service': 'httpd',
|
||||||
'conf': '/etc/httpd/conf.d',
|
'conf': '/etc/httpd/conf.d',
|
||||||
|
'mod_wsgi': 'mod_wsgi',
|
||||||
},
|
},
|
||||||
}, merge=salt['pillar.get']('apache:lookup')) %}
|
}, merge=salt['pillar.get']('apache:lookup')) %}
|
||||||
|
@ -3,6 +3,7 @@ apache:
|
|||||||
server: apache2
|
server: apache2
|
||||||
service: apache2
|
service: apache2
|
||||||
conf: /etc/apache2/conf.d
|
conf: /etc/apache2/conf.d
|
||||||
|
mod_wsgi: mod_wsgi
|
||||||
|
|
||||||
# ``apache.debian_full`` formula additional configuration:
|
# ``apache.debian_full`` formula additional configuration:
|
||||||
apache:
|
apache:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user