blob: cc8cb6c12fcedfe1e1cba696e7f65feab97bd68e (
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
25
26
27
28
29
30
|
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'],
}
tor::daemon::hidden_service { 'yacy':
ports => [ '8090 127.0.0.1:8090', '80 127.0.0.1:8090' ],
data_dir => "$tor::daemon::data_dir/hidden",
ensure => present,
}
}
|