|
|
@@ -1,28 +1,29 @@ |
|
|
|
{% if grains['os_family']=="Debian" %} |
|
|
|
{% from "apache/map.jinja" import apache with context %} |
|
|
|
|
|
|
|
include: |
|
|
|
- apache |
|
|
|
- apache.mod_actions |
|
|
|
|
|
|
|
repo-fastcgi: |
|
|
|
pkgrepo.managed: |
|
|
|
- name: "deb http://httpredir.debian.org/debian jessie" |
|
|
|
- file: /etc/apt/sources.list.d/non-free.list |
|
|
|
- comps: non-free |
|
|
|
|
|
|
|
{% 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: |
|
|
|
- pkgrepo: repo-fastcgi |
|
|
|
- pkg: mod-fastcgi |
|
|
|
- watch_in: |
|
|
|
- module: apache-restart |