From be024a6475fe097f54df8cf1506ed8903ebfce98 Mon Sep 17 00:00:00 2001 From: Noel McLoughlin Date: Thu, 24 Aug 2017 11:41:05 +0100 Subject: [PATCH] workaround for #192 --- apache/config.sls | 2 +- apache/mod_php5.sls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/config.sls b/apache/config.sls index 6a29683..7c7c829 100644 --- a/apache/config.sls +++ b/apache/config.sls @@ -57,7 +57,7 @@ include: - service: apache {% endif %} -{% if grains['os_family']=="Suse" %} +{% if grains['os_family']=="Suse" or salt['grains.get']('os') == 'SUSE' %} /etc/apache2/global.conf: file.managed: - template: jinja diff --git a/apache/mod_php5.sls b/apache/mod_php5.sls index 370e360..93e16a3 100644 --- a/apache/mod_php5.sls +++ b/apache/mod_php5.sls @@ -46,7 +46,7 @@ a2enmod php5: {% endif %} -{% if grains['os_family']=="Suse" %} +{% if grains['os_family']=="Suse" or salt['grains.get']('os') == 'SUSE' %} /etc/sysconfig/apache2: file.replace: - unless: grep '^APACHE_MODULES=.*php5' /etc/sysconfig/apache2