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:
68ac193
)
remove .onion from configured address for onionbalance
author
Peter Palfrader
<peter@palfrader.org>
Fri, 29 Jul 2016 07:18:11 +0000
(07:18 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 29 Jul 2016 07:18:11 +0000
(07:18 +0000)
modules/onion/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/onion/manifests/service.pp
b/modules/onion/manifests/service.pp
index
726f6c8
..
08b892a
100644
(file)
--- a/
modules/onion/manifests/service.pp
+++ b/
modules/onion/manifests/service.pp
@@
-13,9
+13,10
@@
define onion::service (
$onion_hn = onion_hostname($name)
if $onion_hn {
+ $hostname_without_onion = regsubst($onion_hn, '\.onion$', '')
@@concat::fragment { "onion::balance::instance::$name::$fqdn":
target => "/etc/onionbalance/config.yaml",
- content => " - address: ${
onion_h
n}\n name: ${hostname}-${name}\n",
+ content => " - address: ${
hostname_without_onio
n}\n name: ${hostname}-${name}\n",
order => "50-${name}-20",
tag => "onion::balance::$name",
}