summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/ssh.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/ssh.pp b/manifests/ssh.pp
index b39e11f..17c086f 100644
--- a/manifests/ssh.pp
+++ b/manifests/ssh.pp
@@ -1,5 +1,15 @@
+# Define two onion services during the v2 to v3 transition
+# https://blog.torproject.org/v2-deprecation-timeline
class onion::ssh {
tor::daemon::hidden_service { 'ssh':
+ version => 2,
+ ports => [ "22 127.0.0.1:22" ],
+ data_dir => "${tor::daemon::data_dir}/hidden",
+ ensure => present,
+ }
+
+ tor::daemon::hidden_service { 'ssh_v3':
+ version => 3,
ports => [ "22 127.0.0.1:22" ],
data_dir => "${tor::daemon::data_dir}/hidden",
ensure => present,