diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-02 14:43:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-02 14:43:29 -0300 |
commit | 11f1a228c4f8497d96be4fd95cc866da3a026b07 (patch) | |
tree | 2bbe2ee0cf4b92317fdb08835ab0efec2c4d5fc0 | |
parent | 0b5031e7995a0ab7e985cfced38485b7f8872ffa (diff) | |
download | puppet-syslog-ng-11f1a228c4f8497d96be4fd95cc866da3a026b07.tar.gz puppet-syslog-ng-11f1a228c4f8497d96be4fd95cc866da3a026b07.tar.bz2 |
Fix ensure param
-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 |