From 69bb7744c879ec988ff9e6cf5388db6394a4748a Mon Sep 17 00:00:00 2001 From: kadogo Date: Tue, 7 Feb 2017 16:43:50 +0100 Subject: [PATCH] Correct little error for mod_fastcgi --- apache/mod_fastcgi.sls | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/apache/mod_fastcgi.sls b/apache/mod_fastcgi.sls index c22dfcb..36e8e7e 100644 --- a/apache/mod_fastcgi.sls +++ b/apache/mod_fastcgi.sls @@ -1,28 +1,29 @@ -{% if grains['os_family']=="Debian" %} +{% from "apache/map.jinja" import apache with context %} include: - apache - apache.mod_actions +{% if grains['os_family']=="Debian" %} +mod-fastcgi: + pkg.installed: + - name: {{ apache.mod_fastcgi }} + - order: 180 + - require: + - pkgrepo: repo-fastcgi + - pkg: apache + repo-fastcgi: pkgrepo.managed: - name: "deb http://httpredir.debian.org/debian jessie" - file: /etc/apt/sources.list.d/non-free.list - comps: non-free -mod-fastcgi: - pkg.installed: - - name: {{ apache.mod_fastcgi }} - - order: 180 - - require: - - pkg: apache - a2enmod fastcgi: cmd.run: - unless: ls /etc/apache2/mods-enabled/fastcgi.load - order: 225 - require: - - pkgrepo: repo-fastcgi - pkg: mod-fastcgi - watch_in: - module: apache-restart