diff options
author | Micah <micah@riseup.net> | 2017-11-01 16:27:50 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2017-11-01 16:27:50 +0000 |
commit | 1029f5382b4466b6d94726c358313674e8bdc030 (patch) | |
tree | 354c2718be37141dd62656b50182671a45980efc | |
parent | ba357b5222a6b00711f19481bb75c787e7edca89 (diff) | |
parent | 2785024a9b2bb49847d8cc77e0691b70cbb3fd5c (diff) |
Merge branch 'obfs4' into 'master'
Add support for Server Transport Plugins (like obsf4proxy)
See merge request shared-puppet-modules-group/tor!15
-rw-r--r-- | manifests/daemon/transport_plugin.pp | 13 | ||||
-rw-r--r-- | templates/torrc.transport_plugin.pp | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/manifests/daemon/transport_plugin.pp b/manifests/daemon/transport_plugin.pp new file mode 100644 index 0000000..7242e5e --- /dev/null +++ b/manifests/daemon/transport_plugin.pp @@ -0,0 +1,13 @@ +# transport plugin +define tor::daemon::transport_plugin( + $servertransport_plugin = '', + $servertransport_listenaddr = '', + $servertransport_options = '', + $ext_port = '' ) { + + concat::fragment { "11.transport_plugin": + content => template('tor/torrc.transport_plugin.erb'), + order => 11, + target => $tor::daemon::config_file, + } +} diff --git a/templates/torrc.transport_plugin.pp b/templates/torrc.transport_plugin.pp new file mode 100644 index 0000000..d57f0e8 --- /dev/null +++ b/templates/torrc.transport_plugin.pp @@ -0,0 +1,13 @@ +# transport plugin +<% if @servertransport_plugin != '' -%> +ServerTransportPlugin <%= @servertransport_plugin %> +<% end -%> +<% if @servertransport_listenaddr != '' -%> +ServerTransportListenAddr <%= @servertransport_listenaddr %> +<% end -%> +<% if @servertransport_options != '' -%> +ServerTransportOptions <%= @servertransport_options %> +<% end -%> +<% if @ext_port != '' -%> +ExtORPort <%= @ext_port %> +<% end -%> |