diff options
-rw-r--r-- | manifests/init.pp | 1 | ||||
-rw-r--r-- | manifests/yacy.pp | 24 |
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'], + } +} |