summaryrefslogtreecommitdiff
path: root/manifests/daemon/hidden_service.pp
blob: 8a062c5a527706e8dbdfa34cfa04b746b0c7a965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# hidden services definition
define tor::daemon::hidden_service(
  $ports         = [],
  $single_hop    = false,
  $v3            = false,
  $data_dir      = $tor::daemon::data_dir,
) {
  info("Using tor::daemon::hidden_service is deprecated, please use tor::daemon::onion_service for ${name}")
  tor::daemon::onion_service{
    $name:
      ports      => $ports,
      single_hop => $single_hop,
      v3         => $v3,
      data_dir   => $data_dir,
  }
}