apache-formula/apache/mod_upload_progress.sls
Sergio Cambra 9a1b1d9b26 Patch upload progress (#267)
* Include the mod_* states in apache.modules for Debian hosts

* upload progress module for debian
2019-09-26 17:57:24 +02:00

23 lines
505 B
Plaintext

{% from "apache/map.jinja" import apache with context %}
{% if grains['os_family']=="Debian" %}
include:
- apache
libapache2-mod-upload-progress:
pkg.installed
a2enmod upload_progress:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/upload_progress.load
- order: 255
- require:
- pkg: libapache2-mod-upload-progress
- watch_in:
- module: apache-restart
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
{% endif %}