aboutsummaryrefslogtreecommitdiff
path: root/manifests/role
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-27 16:08:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-27 16:08:35 -0300
commit051e1efd9bb089a38811f48edbf3c77757034a50 (patch)
treeea0de8d524075fc8f8d6c5533d7b1ad715c1b207 /manifests/role
parente5f1c681276315d1f994447c535ac1100a979277 (diff)
downloadpuppet-nodo-051e1efd9bb089a38811f48edbf3c77757034a50.tar.gz
puppet-nodo-051e1efd9bb089a38811f48edbf3c77757034a50.tar.bz2
Fix on yacy cronjob status
Diffstat (limited to 'manifests/role')
-rw-r--r--manifests/role/yacy.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/role/yacy.pp b/manifests/role/yacy.pp
index 15a2fd6..e1fa6ed 100644
--- a/manifests/role/yacy.pp
+++ b/manifests/role/yacy.pp
@@ -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'],
}