Add mod_xsenfile (Debian)
This commit is contained in:
parent
34a1050c66
commit
7495b5fdd8
24
apache/mod_xsendfile.sls
Normal file
24
apache/mod_xsendfile.sls
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{% from "apache/map.jinja" import apache with context %}
|
||||||
|
|
||||||
|
include:
|
||||||
|
- apache
|
||||||
|
|
||||||
|
mod-xsendfile:
|
||||||
|
pkg.installed:
|
||||||
|
- name: {{ apache.mod_xsendfile }}
|
||||||
|
- order: 180
|
||||||
|
- require:
|
||||||
|
- pkg: apache
|
||||||
|
|
||||||
|
{% if grains['os_family']=="Debian" %}
|
||||||
|
a2enmod xsendfile:
|
||||||
|
cmd.run:
|
||||||
|
- order: 225
|
||||||
|
- unless: ls /etc/apache2/mods-enabled/xsendfile.load
|
||||||
|
- require:
|
||||||
|
- pkg: mod-xsendfile
|
||||||
|
- watch_in:
|
||||||
|
- module: apache-restart
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user