From 9eb3afad9b80093760e45cd1f05422c7f3d5d380 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 22 May 2021 15:20:22 -0300 Subject: Feat: onion::ssh: v2 to v3 transition --- manifests/ssh.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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, -- cgit v1.2.3