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