apache-formula/apache/mod_fcgid.sls
2018-01-16 10:04:16 +01:00

25 lines
476 B
Plaintext

{% from "apache/map.jinja" import apache with context %}
include:
- apache
mod-fcgid:
pkg.installed:
- name: {{ apache.mod_fcgid }}
- order: 180
- require:
- pkg: apache
{% if grains['os_family']=="Debian" %}
a2enmod fcgid for apache.mod_fcgid:
cmd.run:
- name: a2enmod fcgid
- order: 225
- unless: ls /etc/apache2/mods-enabled/fcgid.load
- require:
- pkg: mod-fcgid
- watch_in:
- module: apache-restart
{% endif %}