aboutsummaryrefslogtreecommitdiff
path: root/manifests/daemon/hidden_service.pp
blob: c8272116fcabdf65cea65782d97e0143dced35cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# hidden services definition
define tor::daemon::hidden_service(
  $ports    = [],
  $data_dir = $tor::daemon::data_dir,
  $ensure   = present ) {

  concat::fragment { "05.hidden_service.${name}":
    ensure  => $ensure,
    content => template('tor/torrc.hidden_service.erb'),
    owner   => 'debian-tor',
    group   => 'debian-tor',
    mode    => '0644',
    order   => 05,
    target  => $tor::daemon::config_file,
  }
}