From: mh Date: Wed, 2 Jan 2013 18:15:34 +0000 (+0100) Subject: Merge remote-tracking branch 'sarava/master' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2f388687ea30fdefdcd405807a0fce699807809d;p=puppet-shorewall.git Merge remote-tracking branch 'sarava/master' Conflicts: manifests/base.pp manifests/init.pp --- 2f388687ea30fdefdcd405807a0fce699807809d diff --cc manifests/base.pp index 937b83b,be3b1f6..97f94f5 --- a/manifests/base.pp +++ b/manifests/base.pp @@@ -1,6 -1,10 +1,7 @@@ class shorewall::base { - case $shorewall_ensure_version { - '': { $shorewall_ensure_version = 'present' } - } + package { 'shorewall': -- ensure => $shorewall_ensure_version, ++ ensure => $shorewall::ensure_version, } # This file has to be managed in place, so shorewall can find it diff --cc manifests/init.pp index 3b4b3b2,57dbeac..580dc8c --- a/manifests/init.pp +++ b/manifests/init.pp @@@ -1,8 -1,9 +1,15 @@@ -class shorewall { - - include common::moduledir - module_dir { "shorewall": } +class shorewall( - $startup = '1' ++ $startup = '1', ++ $ensure_version = 'present', ++ $tor_transparent_proxy_host = '127.0.0.1', ++ $tor_transparent_proxy_port = '9040', ++ $tor_user = $::operatingsystem ? { ++ 'Debian' => 'debian-tor', ++ default => 'tor' ++ } +) { - case $operatingsystem { + case $::operatingsystem { gentoo: { include shorewall::gentoo } debian: { include shorewall::debian @@@ -21,19 -22,25 +28,6 @@@ } } -- 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, - owner => root, group => 0, mode => 0755; -- } -- # See http://www.shorewall.net/3.0/Documentation.htm#Zones shorewall::managed_file{ zones: } # See http://www.shorewall.net/3.0/Documentation.htm#Interfaces @@@ -64,6 -71,7 +58,9 @@@ shorewall::managed_file { tcrules: } # See http://www.shorewall.net/3.0/traffic_shaping.htm shorewall::managed_file { tcclasses: } + # http://www.shorewall.net/manpages/shorewall-providers.html + shorewall::managed_file { providers: } + # See http://www.shorewall.net/manpages/shorewall-tunnels.html + shorewall::managed_file { tunnel: } + }