From af0c009f7b671060e1cea68c7de783ca00da9419 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Sun, 22 Jan 2017 22:50:33 +0100 Subject: [PATCH] ensure php5 module is enabled on openSUSE / SLE --- apache/mod_php5.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apache/mod_php5.sls b/apache/mod_php5.sls index b1fa80e..719ba7d 100644 --- a/apache/mod_php5.sls +++ b/apache/mod_php5.sls @@ -33,3 +33,11 @@ a2enmod php5: {% endif %} {% endif %} + +{% if grains['os_family']=="Suse" %} +/etc/sysconfig/apache2: + file.replace: + - unless: grep '^APACHE_MODULES=.*php5' /etc/sysconfig/apache2 + - pattern: '^APACHE_MODULES=(.*)"' + - repl: 'APACHE_MODULES=\1 php5"' +{% endif %}