apache-formula/apache/mod_fcgid.sls

25 lines
476 B
Plaintext
Raw Normal View History

{% from "apache/map.jinja" import apache with context %}
2013-07-29 23:29:41 +02:00
include:
- apache
2013-07-29 23:29:41 +02:00
mod-fcgid:
pkg.installed:
- name: {{ apache.mod_fcgid }}
2013-07-29 23:29:41 +02:00
- order: 180
- require:
2013-07-29 23:30:29 +02:00
- pkg: apache
2013-07-29 23:29:41 +02:00
{% if grains['os_family']=="Debian" %}
2018-01-16 10:04:16 +01:00
a2enmod fcgid for apache.mod_fcgid:
2013-07-29 23:29:41 +02:00
cmd.run:
2018-01-16 10:04:16 +01:00
- name: a2enmod fcgid
2013-07-29 23:29:41 +02:00
- order: 225
- unless: ls /etc/apache2/mods-enabled/fcgid.load
- require:
2013-07-29 23:29:41 +02:00
- pkg: mod-fcgid
- watch_in:
- module: apache-restart
2013-07-29 23:29:41 +02:00
{% endif %}