summaryrefslogtreecommitdiff
path: root/manifests/daemon/socks.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:35 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:35 -0400
commit27f6b09be549aeebae459259ef37aaa665b7ee7d (patch)
tree1beb63d346b919727a0e7e8df124feb5039930cb /manifests/daemon/socks.pp
Squashed 'puppet/modules/tor/' content from commit 9981a70
git-subtree-dir: puppet/modules/tor git-subtree-split: 9981a70f7ba1f9e4fe33e4eb46654295287c1fc1
Diffstat (limited to 'manifests/daemon/socks.pp')
-rw-r--r--manifests/daemon/socks.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/daemon/socks.pp b/manifests/daemon/socks.pp
new file mode 100644
index 00000000..910461c9
--- /dev/null
+++ b/manifests/daemon/socks.pp
@@ -0,0 +1,15 @@
+# socks definition
+define tor::daemon::socks(
+ $port = 0,
+ $listen_addresses = [],
+ $policies = [] ) {
+
+ concat::fragment { '02.socks':
+ content => template('tor/torrc.socks.erb'),
+ owner => 'debian-tor',
+ group => 'debian-tor',
+ mode => '0644',
+ order => 02,
+ target => $tor::daemon::config_file,
+ }
+}