]> gitweb.fluxo.info Git - puppet-syslog-ng.git/commitdiff
Fix ensure param
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 2 Jun 2016 17:43:29 +0000 (14:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 2 Jun 2016 17:43:29 +0000 (14:43 -0300)
manifests/init.pp

index f3c4836b500ab000d06f2cb49b183ca4949dbc22..f8af93ca2169a6e31608c70a269d260e559bc685 100644 (file)
@@ -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