From 41c8e87726dd979fe7acc7680902185fc550d91f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 Jan 2013 14:22:15 -0200 Subject: Adding onion::ssh class --- manifests/subsystems/onion.pp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 { -- cgit v1.2.3