apache-formula/apache/mod_fastcgi.sls

33 lines
659 B
Plaintext
Raw Normal View History

2017-02-07 16:43:50 +01:00
{% from "apache/map.jinja" import apache with context %}
2017-02-07 16:02:26 +01:00
include:
- apache
- apache.mod_actions
2017-02-07 16:43:50 +01:00
{% if grains['os_family']=="Debian" %}
2017-02-07 16:02:26 +01:00
mod-fastcgi:
pkg.installed:
- name: {{ apache.mod_fastcgi }}
- order: 180
- require:
2017-02-07 16:43:50 +01:00
- pkgrepo: repo-fastcgi
2017-02-07 16:02:26 +01:00
- pkg: apache
2017-02-07 16:43:50 +01:00
repo-fastcgi:
pkgrepo.managed:
- name: "deb http://httpredir.debian.org/debian jessie"
- file: /etc/apt/sources.list.d/non-free.list
- comps: non-free
2017-02-07 16:02:26 +01:00
a2enmod fastcgi:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/fastcgi.load
- order: 225
- require:
- pkg: mod-fastcgi
- watch_in:
- module: apache-restart
{% endif %}