diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-05-22 15:20:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-05-22 15:20:22 -0300 |
commit | 9eb3afad9b80093760e45cd1f05422c7f3d5d380 (patch) | |
tree | aaf003454d6c17682896e6497926f1b5af5e454b | |
parent | 944a4c7fa0e1d0bd151ac418c341b321024594f9 (diff) | |
download | puppet-onion-9eb3afad9b80093760e45cd1f05422c7f3d5d380.tar.gz puppet-onion-9eb3afad9b80093760e45cd1f05422c7f3d5d380.tar.bz2 |
Feat: onion::ssh: v2 to v3 transition
-rw-r--r-- | manifests/ssh.pp | 10 |
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, |