Browse Source

Fix wsgi.conf uncomment for RedHat based OS

tags/v0.37.4
Oleksandr Porunov 7 years ago
parent
commit
c28a1097e3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apache/mod_wsgi.sls

+ 2
- 1
apache/mod_wsgi.sls View File

@@ -9,10 +9,11 @@ mod_wsgi:
- require:
- pkg: apache

{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %}
{% if grains.get('os_family') == 'RedHat' %}
/etc/httpd/conf.d/wsgi.conf:
file.uncomment:
- regex: LoadModule
- onlyif: test -f /etc/httpd/conf.d/wsgi.conf
- require:
- pkg: mod_wsgi
{% endif %}

Loading…
Cancel
Save