瀏覽代碼

Merge pull request #176 from porunov/master

Clear uncomment state of mod_wsgi config
tags/v0.37.4
Javier Bértoli 7 年之前
父節點
當前提交
919f2a38d2
共有 3 個檔案被更改,包括 5 行新增3 行删除
  1. +1
    -0
      apache/map.jinja
  2. +3
    -3
      apache/mod_wsgi.sls
  3. +1
    -0
      apache/osfingermap.yaml

+ 1
- 0
apache/map.jinja 查看文件

@@ -54,6 +54,7 @@
'configfile': '/etc/httpd/conf/httpd.conf',

'mod_wsgi': 'mod_wsgi',
'conf_mod_wsgi': '/etc/httpd/conf.d/wsgi.conf',
'mod_php5': 'php',
'mod_pagespeed_source': 'https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm',


+ 3
- 3
apache/mod_wsgi.sls 查看文件

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

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

+ 1
- 0
apache/osfingermap.yaml 查看文件

@@ -10,6 +10,7 @@ CentOS Linux-6:
version: '2.2'
CentOS Linux-7:
version: '2.4'
conf_mod_wsgi: '/etc/httpd/conf.modules.d/10-wsgi.conf'
Oracle Linux Server-6:
version: '2.2'
Oracle Linux Server-7:

Loading…
取消
儲存