Przeglądaj źródła

fixed things seth mentioned in class

tags/v0.37.4
KennethWilke 10 lat temu
rodzic
commit
964b653692
2 zmienionych plików z 6 dodań i 12 usunięć
  1. +4
    -8
      apache/init.sls
  2. +2
    -4
      apache/mod_wsgi.sls

+ 4
- 8
apache/init.sls Wyświetl plik

@@ -1,24 +1,20 @@
{% from "apache/map.jinja" import apache with context %}

apache:
pkg:
- installed
pkg.installed:
- name: {{ apache.server }}
service:
- running
service.running:
- name: {{ apache.service }}
- enable: True

# The following states are inert by default and can be used by other states to
# trigger a restart or reload as needed.
apache-reload:
module:
- wait
module.wait:
- name: service.reload
- m_name: {{ apache.service }}

apache-restart:
module:
- wait
module.wait:
- name: service.restart
- m_name: {{ apache.service }}

+ 2
- 4
apache/mod_wsgi.sls Wyświetl plik

@@ -4,16 +4,14 @@ include:
- apache

mod_wsgi:
pkg:
- installed
pkg.installed:
- name: {{ apache.mod_wsgi }}
- require:
- pkg: apache

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

Ładowanie…
Anuluj
Zapisz