From a287922545a59229d0382e14a53779a45e1a8cb1 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Sat, 27 Jul 2013 19:59:10 +0000 Subject: [PATCH] add platform logic for pkg install --- apache/init.sls | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apache/init.sls b/apache/init.sls index 1089ab2..72e8de2 100644 --- a/apache/init.sls +++ b/apache/init.sls @@ -1,7 +1,10 @@ apache2: - pkg: +{% if grains['os_family'] == 'Debian' %} + pkg: - installed - service: +{% endif %} + service: - running + - endable: True - require: - - pkg: apache2 + - pkg: apache2