apache-formula/apache/mod_fastcgi.sls
2017-05-17 06:41:55 +02:00

33 lines
659 B
Plaintext

{% 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
a2enmod fastcgi:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/fastcgi.load
- order: 225
- require:
- pkg: mod-fastcgi
- watch_in:
- module: apache-restart
{% endif %}