aboutsummaryrefslogtreecommitdiff
path: root/manifests/daemon/transparent.pp
blob: 74fed4fc964ec2b37aa2a380e6e9a054c6f87ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Transparent proxy definition
define tor::daemon::transparent(
  $port             = 0,
  $listen_addresses = [],
  $ensure           = present ) {

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