aboutsummaryrefslogtreecommitdiff
path: root/manifests/yacy.pp
blob: e08553102a79a805b77949bcaaa7eb1fe4127586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'],
  }
}