2017-02-07 16:01:49 +01:00
|
|
|
{% from "apache/map.jinja" import apache with context %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- apache
|
|
|
|
|
|
|
|
mod-xsendfile:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ apache.mod_xsendfile }}
|
|
|
|
- order: 180
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
2018-11-09 00:25:52 +01:00
|
|
|
- watch_in:
|
|
|
|
- module: apache-restart
|
|
|
|
- require_in:
|
|
|
|
- module: apache-restart
|
|
|
|
- module: apache-reload
|
|
|
|
- service: apache
|
2017-02-07 16:01:49 +01:00
|
|
|
|
|
|
|
{% 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
|
2018-11-09 00:25:52 +01:00
|
|
|
- require_in:
|
|
|
|
- module: apache-restart
|
|
|
|
- module: apache-reload
|
|
|
|
- service: apache
|
2017-02-07 16:01:49 +01:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|