diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-01-09 20:05:25 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-01-09 20:05:25 -0200 |
commit | 34579f2bdd4908d2224b9e3e8f11587a48f2cbdb (patch) | |
tree | 1a0459036638a770600b788c8acab3344434f8c4 | |
parent | db5143c0d11e6640cf1628bbc488254f93655d79 (diff) | |
download | puppet-tor-34579f2bdd4908d2224b9e3e8f11587a48f2cbdb.tar.gz puppet-tor-34579f2bdd4908d2224b9e3e8f11587a48f2cbdb.tar.bz2 |
Support for HiddenServiceVersion
-rw-r--r-- | manifests/daemon/hidden_service.pp | 1 | ||||
-rw-r--r-- | templates/torrc.hidden_service.erb | 1 |
2 files changed, 2 insertions, 0 deletions
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 -%> |