projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f899b
)
Force HiddenServiceVersion 2 as that is the only thing onionbalance understands
author
Peter Palfrader
<peter@palfrader.org>
Wed, 3 Jul 2019 06:08:08 +0000
(08:08 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 3 Jul 2019 06:08:08 +0000
(08:08 +0200)
modules/onion/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/onion/manifests/service.pp
b/modules/onion/manifests/service.pp
index
77ecc89
..
01f5531
100644
(file)
--- a/
modules/onion/manifests/service.pp
+++ b/
modules/onion/manifests/service.pp
@@
-20,7
+20,12
@@
define onion::service (
concat::fragment { "onion::torrc_onionservice::${name}":
target => "/etc/tor/torrc",
order => '50',
- content => "HiddenServiceDir /var/lib/tor/onion/${name}\nHiddenServicePort ${port} ${target_address}:${target_port}\n\n",
+ content => @("EOF"),
+ HiddenServiceDir /var/lib/tor/onion/${name}
+ HiddenServicePort ${port} ${target_address}:${target_port}
+ HiddenServiceVersion 2
+
+ | EOF
}
$onion_hn = onion_tor_service_hostname($name)