]> gitweb.fluxo.info Git - puppet-onion.git/commitdiff
Feat: onion::ssh: v2 to v3 transition
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 22 May 2021 18:20:22 +0000 (15:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 22 May 2021 18:20:22 +0000 (15:20 -0300)
manifests/ssh.pp

index b39e11f45ed7b275e3ccda6f148f4350e9e3ae4a..17c086f8b3a7b369f744fd7f9b88ee7ecda681d1 100644 (file)
@@ -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,