From 964b65369236f2463a625cdb68bdd5845c1ded04 Mon Sep 17 00:00:00 2001 From: KennethWilke Date: Thu, 25 Sep 2014 11:48:36 -0500 Subject: [PATCH] fixed things seth mentioned in class --- apache/init.sls | 12 ++++-------- apache/mod_wsgi.sls | 6 ++---- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/apache/init.sls b/apache/init.sls index 1cd64bd..5ce70f9 100644 --- a/apache/init.sls +++ b/apache/init.sls @@ -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 }} diff --git a/apache/mod_wsgi.sls b/apache/mod_wsgi.sls index 17400c6..73f9251 100644 --- a/apache/mod_wsgi.sls +++ b/apache/mod_wsgi.sls @@ -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