From: Silvio Rhatto Date: Thu, 2 Jun 2016 17:43:29 +0000 (-0300) Subject: Fix ensure param X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=11f1a228c4f8497d96be4fd95cc866da3a026b07;p=puppet-syslog-ng.git Fix ensure param --- diff --git a/manifests/init.pp b/manifests/init.pp index f3c4836..f8af93c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -33,7 +33,10 @@ class syslog-ng( # syslog-ng service service { "syslog-ng": enable => true, - ensure => $ensure, + ensure => $ensure ? { + 'present' => running, + default => stopped, + }, hasrestart => true, hasstatus => false, # Somehow syslog-ng is not returning if it was killed due to lack of