aboutsummaryrefslogtreecommitdiff
path: root/manifests/yacy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/yacy.pp')
-rw-r--r--manifests/yacy.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/yacy.pp b/manifests/yacy.pp
new file mode 100644
index 0000000..e085531
--- /dev/null
+++ b/manifests/yacy.pp
@@ -0,0 +1,24 @@
+class nodo::yacy inherits nodo::vserver {
+ include tor::daemon
+
+ # It's important to use a subdir from the tor datadir
+ # to ease backup/restore procedures as we don't mix
+ # hidden service data with other tor files.
+ if !defined(File["$tor::daemon::data_dir/hidden"]) {
+ file { "$tor::daemon::data_dir/hidden":
+ ensure => directory,
+ owner => 'debian-tor',
+ group => 'debian-tor',
+ mode => 0700,
+ }
+ }
+
+ package { 'yacy':
+ ensure => installed,
+ }
+
+ service { 'yacy':
+ ensure => running,
+ require => Package['yacy'],
+ }
+}