apache-formula/apache/mod_fastcgi.sls
2018-02-14 21:01:43 +00:00

34 lines
732 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://ftp.us.debian.org/debian {{ grains['oscodename'] }}"
- file: /etc/apt/sources.list.d/non-free.list
- onlyif: grep Debian /proc/version >/dev/null 2>&1
- 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 %}