aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/yacy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role/yacy.pp')
-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'],
}