summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/manifests/daemon/transparent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/tor/manifests/daemon/transparent.pp')
-rw-r--r--puppet/modules/tor/manifests/daemon/transparent.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/tor/manifests/daemon/transparent.pp b/puppet/modules/tor/manifests/daemon/transparent.pp
new file mode 100644
index 00000000..65d744f4
--- /dev/null
+++ b/puppet/modules/tor/manifests/daemon/transparent.pp
@@ -0,0 +1,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,
+ }
+}
+