aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-17 19:39:44 +0100
committerintrigeri <intrigeri@boum.org>2010-12-17 19:39:44 +0100
commitb39b5c24910f8816c3b9e6d2a0211ad892b36aa6 (patch)
treee0b7d6044597a4dc4a70c377274bc0075667ea21 /manifests/init.pp
parent3691f9c09adbb9dbde9bb945b0f4da0e5a525ced (diff)
downloadpuppet-shorewall-b39b5c24910f8816c3b9e6d2a0211ad892b36aa6.tar.gz
puppet-shorewall-b39b5c24910f8816c3b9e6d2a0211ad892b36aa6.tar.bz2
Add support for Tor-ified traffic.
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp18
1 files changed, 17 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3e759db..f69a6f2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,7 +5,10 @@ class shorewall {
case $operatingsystem {
gentoo: { include shorewall::gentoo }
- debian: { include shorewall::debian }
+ debian: {
+ include shorewall::debian
+ $dist_tor_user = 'debian-tor'
+ }
centos: { include shorewall::base }
ubuntu: {
case $lsbdistcodename {
@@ -19,6 +22,19 @@ class shorewall {
}
}
+ case $tor_transparent_proxy_host {
+ '': { $tor_transparent_proxy_host = '127.0.0.1' }
+ }
+ case $tor_transparent_proxy_port {
+ '': { $tor_transparent_proxy_port = '9040' }
+ }
+ if $tor_user == '' {
+ $tor_user = $dist_tor_user ? {
+ '' => 'tor',
+ default => $dist_tor_user,
+ }
+ }
+
file {"/var/lib/puppet/modules/shorewall":
ensure => directory,
force => true,