apache-formula/apache/mod_xsendfile.sls

25 lines
450 B
Plaintext
Raw Normal View History

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
{% 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 %}