summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/manifests/daemon/bridge.pp
blob: 063f5656842acb8bbf270e664048aae489939a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Bridge definition
define tor::daemon::bridge(
  $ip,
  $port,
  $fingerprint = false,
  $ensure      = present ) {

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