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:
4921ab7
)
put an onion instance into a storedconf for onionbalance
author
Peter Palfrader
<peter@palfrader.org>
Thu, 28 Jul 2016 20:32:47 +0000
(20:32 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Thu, 28 Jul 2016 20:32:47 +0000
(20:32 +0000)
modules/onion/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/onion/manifests/service.pp
b/modules/onion/manifests/service.pp
index
1bfdb8d
..
57e723f
100644
(file)
--- a/
modules/onion/manifests/service.pp
+++ b/
modules/onion/manifests/service.pp
@@
-10,4
+10,13
@@
define onion::service (
order => 10,
content => "HiddenServiceDir /var/lib/tor/onion/${name}\nHiddenServicePort ${port} ${target_address}:${target_port}\n\n",
}
+
+ $onion_hn = onion_hostname($name)
+ if $onion_hn {
+ @@concat::fragment { "onion::balance::instance::$name::$hostname":
+ target => "/etc/onionbalance/config",
+ content => " - address: ${onion_hn}\n name: ${hostname}-${name}",
+ tag => "onion::balance::$name",
+ }
+ }
}