diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 18 |
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, |