apache-formula/apache/mod_fastcgi.sls

34 lines
732 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:
2018-02-14 22:01:43 +01:00
- name: "deb http://ftp.us.debian.org/debian {{ grains['oscodename'] }}"
2017-02-07 16:43:50 +01:00
- file: /etc/apt/sources.list.d/non-free.list
2018-02-14 22:01:43 +01:00
- onlyif: grep Debian /proc/version >/dev/null 2>&1
2017-02-07 16:43:50 +01:00
- 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 %}