blob: 4549cc75475b2189f83ac1d3818bd8822e239440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# hidden services definition
define tor::daemon::hidden_service(
$ports = [],
$single_hop = false,
$data_dir = $tor::daemon::data_dir ) {
if $single_hop {
file { "${$data_dir}/${$name}/onion_service_non_anonymous":
ensure => 'present',
}
}
concat::fragment { "05.hidden_service.${name}":
content => template('tor/torrc.hidden_service.erb'),
order => 05,
target => $tor::daemon::config_file,
}
}
|