]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding onion::ssh class
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Jan 2013 16:22:15 +0000 (14:22 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Jan 2013 16:22:15 +0000 (14:22 -0200)
manifests/subsystems/onion.pp

index 2b03839460331af6baf2565dc8ea15805c2f518d..3ec1a7b8c5ff6a01529b2eeb6b947b1b47fd1279 100644 (file)
@@ -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 {