From 11f1a228c4f8497d96be4fd95cc866da3a026b07 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 2 Jun 2016 14:43:29 -0300 Subject: Fix ensure param --- manifests/init.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3