From b39b5c24910f8816c3b9e6d2a0211ad892b36aa6 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 17 Dec 2010 19:39:44 +0100 Subject: Add support for Tor-ified traffic. --- manifests/init.pp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'manifests/init.pp') 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, -- cgit v1.2.3