aboutsummaryrefslogtreecommitdiff
path: root/manifests/daemon/hidden_service.pp
blob: 0ba9eb8511df2a0f19270743e5aaa2e1571b13a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# hidden services definition
define tor::daemon::hidden_service(
  $ports    = [],
  $version  = 3,
  $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,
  }
}