aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-08 11:28:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-08 11:28:22 -0300
commitb4cc97bc47e997b7470645943ea6da199079a848 (patch)
tree311adfdb6dbaed9bcd7f8f9ac74f4f4f68974559
parentbaa322413918d0ea989ebdaf9c5de64f030794cc (diff)
downloadpuppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.gz
puppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.bz2
Adding nodo::yacy
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/yacy.pp24
2 files changed, 25 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d9da7a0..42df0d3 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -126,3 +126,4 @@ import "tor.pp"
import "kvm.pp"
import "jabber.pp"
import "mumble.pp"
+import "yacy.pp"
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'],
+ }
+}