]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fix on yacy cronjob status
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Aug 2013 19:08:35 +0000 (16:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Aug 2013 19:08:35 +0000 (16:08 -0300)
manifests/role/yacy.pp

index 15a2fd671962acebd08747796a48fb3631bec15d..e1fa6edc7c1e2bbf00429719c6d727fea85db086 100644 (file)
@@ -18,7 +18,10 @@ class nodo::role::yacy inherits nodo::base::vserver {
     user     => root,
     hour     => "*/4",
     minute   => "0",
-    ensure   => present,
+    ensure   => $yacy_status ? {
+      'running' => present,
+       default  => absent,
+    },
     require  => Service['yacy'],
   }