From 34579f2bdd4908d2224b9e3e8f11587a48f2cbdb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 9 Jan 2019 20:05:25 -0200 Subject: Support for HiddenServiceVersion --- manifests/daemon/hidden_service.pp | 1 + templates/torrc.hidden_service.erb | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/daemon/hidden_service.pp b/manifests/daemon/hidden_service.pp index c827211..89e05a8 100644 --- a/manifests/daemon/hidden_service.pp +++ b/manifests/daemon/hidden_service.pp @@ -1,6 +1,7 @@ # hidden services definition define tor::daemon::hidden_service( $ports = [], + $version = 2, $data_dir = $tor::daemon::data_dir, $ensure = present ) { diff --git a/templates/torrc.hidden_service.erb b/templates/torrc.hidden_service.erb index 4dec0b2..f9170c9 100644 --- a/templates/torrc.hidden_service.erb +++ b/templates/torrc.hidden_service.erb @@ -1,5 +1,6 @@ # hidden service <%= @name %> HiddenServiceDir <%= @data_dir %>/<%= @name %> +HiddenServiceVersion <%= @version %> <% @ports.each do |port| -%> HiddenServicePort <%= port %> <% end -%> -- cgit v1.2.3