Browse Source

Add mod_xsenfile (Debian)

tags/v0.37.4
kadogo 7 years ago
parent
commit
7495b5fdd8
1 changed files with 24 additions and 0 deletions
  1. +24
    -0
      apache/mod_xsendfile.sls

+ 24
- 0
apache/mod_xsendfile.sls View 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…
Cancel
Save