apache-formula/apache/mod_php5.sls
Niels Abspoel 53b995a680 Improved apache-formula
- Added more modules and configuration options
 - Renamed sls files to reflect what they do.
 - added mpm options for Debian
2015-06-19 20:44:53 +02:00

36 lines
711 B
Plaintext

{% from "apache/map.jinja" import apache with context %}
include:
- apache
mod-php5:
pkg.installed:
- name: {{ apache.mod_php5 }}
- order: 180
- require:
- pkg: apache
{% if grains['os_family']=="Debian" %}
a2enmod php5:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/php5.load
- order: 225
- require:
- pkg: mod-php5
- watch_in:
- module: apache-restart
{% if 'apache' in pillar and 'php-ini' in pillar['apache'] %}
/etc/php5/apache2/php.ini:
file.managed:
- source: {{ pillar['apache']['php-ini'] }}
- order: 225
- watch_in:
- module: apache-restart
- require:
- pkg: apache
- pkg: mod-php5
{% endif %}
{% endif %}