From: intrigeri Date: Sat, 4 Aug 2012 14:49:53 +0000 (+0200) Subject: Merge remote-tracking branch 'shared/master' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=817a37f02ec443603cbfe7e2cc5c55e07a2a471c;p=puppet-tor.git Merge remote-tracking branch 'shared/master' Conflicts: manifests/daemon.pp --- 817a37f02ec443603cbfe7e2cc5c55e07a2a471c diff --cc manifests/daemon.pp index d04734d,7661a43..e6d0c2e --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@@ -193,45 -194,16 +202,55 @@@ class tor::daemon inherits tor } } + # DNS definition + define dns( $port = 0, + $listen_addresses = [], + $ensure = present ) { + + concatenated_file_part { "08.dns.${name}": + dir => $tor::daemon::snippet_dir, + content => template('tor/torrc.dns.erb'), + owner => 'debian-tor', group => 'debian-tor', mode => 0644, + ensure => $ensure, + } + } + + # Transparent proxy definition + define transparent( $port = 0, + $listen_addresses = [], + $ensure = present ) { + + concatenated_file_part { "09.transparent.${name}": + dir => $tor::daemon::snippet_dir, + content => template('tor/torrc.transparent.erb'), + owner => 'debian-tor', group => 'debian-tor', mode => 0644, + ensure => $ensure, + } + } + + # Bridge definition + define bridge( $ip, + $port, + $fingerprint = false, + $ensure = present ) { + + concatenated_file_part { "10.bridge.${name}": + dir => $tor::daemon::snippet_dir, + content => template('tor/torrc.bridge.erb'), + owner => 'debian-tor', group => 'debian-tor', mode => 0644, + ensure => $ensure, + } + } + - } + # map address definition + define map_address( $address = '', + $newaddress = '') { + concatenated_file_part { "08.map_address.${name}": + dir => $tor::daemon::snippet_dir, + content => template('tor/torrc.map_address.erb'), + owner => 'debian-tor', group => 'debian-tor', mode => 0644, + ensure => $ensure, + } + } + } -