diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-07-08 11:28:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-07-08 11:28:22 -0300 |
commit | b4cc97bc47e997b7470645943ea6da199079a848 (patch) | |
tree | 311adfdb6dbaed9bcd7f8f9ac74f4f4f68974559 /manifests | |
parent | baa322413918d0ea989ebdaf9c5de64f030794cc (diff) | |
download | puppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.gz puppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.bz2 |
Adding nodo::yacy
Diffstat (limited to 'manifests')
-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'], + } +} |