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/yacy.pp | |
| parent | baa322413918d0ea989ebdaf9c5de64f030794cc (diff) | |
| download | puppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.gz puppet-nodo-b4cc97bc47e997b7470645943ea6da199079a848.tar.bz2 | |
Adding nodo::yacy
Diffstat (limited to 'manifests/yacy.pp')
| -rw-r--r-- | manifests/yacy.pp | 24 | 
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'], +  } +} | 
