diff options
-rw-r--r-- | manifests/role/yacy.pp | 5 |
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'], } |