Merge pull request #73 from Wenzel/fix_mod_mpm

fix apache-restart ID in apache/mod_mpm according to apache/init.sls
This commit is contained in:
puneet kandhari 2015-08-25 05:09:49 -05:00
commit 3dafac2627

View File

@ -11,7 +11,7 @@ a2enmod {{ mpm_module }}:
- require:
- pkg: apache
- watch_in:
- module: apache_restart
- module: apache-restart
file.managed:
- name: /etc/apache2/mods-available/{{ mpm_module }}.conf
- template: jinja
@ -20,7 +20,7 @@ a2enmod {{ mpm_module }}:
- require:
- pkg: apache
- watch_in:
- module: apache_restart
- module: apache-restart
# Deactivate the other mpm modules as a previous step
{% for mod in ['mpm_prefork', 'mpm_worker', 'mpm_event'] if not mod == mpm_module %}
@ -32,7 +32,7 @@ a2dismod {{ mod }}:
- require_in:
- cmd: a2enmod {{ mpm_module }}
- watch_in:
- module: apache_restart
- module: apache-restart
{% endfor %}
{% endif %}