summaryrefslogtreecommitdiff
path: root/manifests/daemon/transport_plugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/daemon/transport_plugin.pp')
-rw-r--r--manifests/daemon/transport_plugin.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/daemon/transport_plugin.pp b/manifests/daemon/transport_plugin.pp
new file mode 100644
index 0000000..f0ba41f
--- /dev/null
+++ b/manifests/daemon/transport_plugin.pp
@@ -0,0 +1,17 @@
+# transport plugin
+define tor::daemon::transport_plugin(
+ $servertransport_plugin = '',
+ $servertransport_listenaddr = '',
+ $servertransport_options = '',
+ $ext_port = '' ) {
+
+ if $port == $ext_port {
+ fail('ORPort and ExtORPort values cannot be the same')
+ }
+
+ concat::fragment { "11.transport_plugin":
+ content => template('tor/torrc.transport_plugin.erb'),
+ order => 11,
+ target => $tor::daemon::config_file,
+ }
+}