diff options
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 4 insertions, 1 deletions
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 |