summaryrefslogtreecommitdiff
path: root/puppet/modules/site_tor/manifests/init.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-02-07 11:48:29 +0100
committervarac <varacanero@zeromail.org>2013-02-07 11:48:49 +0100
commit08720568f7c00373560379e44695b881fff18af1 (patch)
tree74255aaf4f526482440f4c2c3ec550eaae266f70 /puppet/modules/site_tor/manifests/init.pp
parentc82b7c8a74ea0154ece5686eac43cab90af77b96 (diff)
working tor relay
Diffstat (limited to 'puppet/modules/site_tor/manifests/init.pp')
-rw-r--r--puppet/modules/site_tor/manifests/init.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/puppet/modules/site_tor/manifests/init.pp b/puppet/modules/site_tor/manifests/init.pp
index 7c25b0e9..654337c7 100644
--- a/puppet/modules/site_tor/manifests/init.pp
+++ b/puppet/modules/site_tor/manifests/init.pp
@@ -6,22 +6,22 @@ class site_tor {
$tor_type = $tor['type']
$contact_email = hiera('contact_email')
+ $address = hiera('ip_address')
class { 'tor::daemon': }
tor::daemon::relay { $::hostname:
port => 9001,
- #listen_addresses => '',
+ address => $address,
contact_info => $contact_email,
bandwidth_rate => $bandwidth_rate,
}
- # we configure the directory later
- #tor::daemon::directory { $::hostname: port => 80 }
+ tor::daemon::directory { $::hostname: port => 80 }
include site_shorewall::tor
- if ( $tor_type == 'exit' ) {
- include site_tor::exit_policy
+ if ( $tor_type != 'exit' ) {
+ include site_tor::disable_exit
}
}