apache-formula/apache/mod_xsendfile.sls

35 lines
703 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
- 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
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
2017-02-07 16:01:49 +01:00
{% endif %}