aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 14:22:15 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 14:22:15 -0200
commit41c8e87726dd979fe7acc7680902185fc550d91f (patch)
tree9f8fd08f6227158ba748db30e00ac73b6001eed0 /manifests/subsystems
parent188f755c06b6498e1b5264f1fcd6cf760d617857 (diff)
downloadpuppet-nodo-41c8e87726dd979fe7acc7680902185fc550d91f.tar.gz
puppet-nodo-41c8e87726dd979fe7acc7680902185fc550d91f.tar.bz2
Adding onion::ssh class
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/onion.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/subsystems/onion.pp b/manifests/subsystems/onion.pp
index 2b03839..3ec1a7b 100644
--- a/manifests/subsystems/onion.pp
+++ b/manifests/subsystems/onion.pp
@@ -34,7 +34,16 @@ class onion::freenode inherits onion::socks {
}
}
+class onion::ssh {
+ tor::daemon::hidden_service { 'ssh':
+ ports => [ "22 127.0.0.1:22" ],
+ data_dir => "${tor::daemon::data_dir}/hidden",
+ ensure => present,
+ }
+}
+
class onion::full inherits onion::freenode {
+ include onion::ssh
# Currently tor management just works for debian
case $::operatingsystem {