mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
Add mod_xsenfile (Debian)
This commit is contained in:
parent
34a1050c66
commit
7495b5fdd8
1 changed files with 24 additions and 0 deletions
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…
Add table
Reference in a new issue