summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-02-07 12:32:02 +0100
committervarac <varacanero@zeromail.org>2013-02-07 12:32:02 +0100
commit173b2dc3ecbdab2cacede4e50f6fa3f5daa3c683 (patch)
tree37bb3f26e23060858336a5f5e38b5aac2fefc280 /puppet
parent08720568f7c00373560379e44695b881fff18af1 (diff)
configure tor relay nickname
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_tor/manifests/init.pp11
1 files changed, 6 insertions, 5 deletions
diff --git a/puppet/modules/site_tor/manifests/init.pp b/puppet/modules/site_tor/manifests/init.pp
index 654337c7..dc16f91a 100644
--- a/puppet/modules/site_tor/manifests/init.pp
+++ b/puppet/modules/site_tor/manifests/init.pp
@@ -1,15 +1,16 @@
class site_tor {
tag 'leap_service'
- $tor = hiera('tor')
+ $tor = hiera('tor')
$bandwidth_rate = $tor['bandwidth_rate']
- $tor_type = $tor['type']
+ $tor_type = $tor['type']
+ $nickname = $tor['nickname']
- $contact_email = hiera('contact_email')
- $address = hiera('ip_address')
+ $contact_email = hiera('contact_email')
+ $address = hiera('ip_address')
class { 'tor::daemon': }
- tor::daemon::relay { $::hostname:
+ tor::daemon::relay { $nickname:
port => 9001,
address => $address,
contact_info => $contact_email,