summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/manifests/daemon/transparent.pp
blob: 65d744f4da81ee22d035e20de03592b9ee72bbdd (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,
  }
}