diff options
Diffstat (limited to 'manifests/pppoe.pp')
-rw-r--r-- | manifests/pppoe.pp | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/manifests/pppoe.pp b/manifests/pppoe.pp index a771d48..93db814 100644 --- a/manifests/pppoe.pp +++ b/manifests/pppoe.pp @@ -1,26 +1,10 @@ class firewall::pppoe( - $packages = false, - $local_dev = false, + $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), + $packages = false, + $local_dev = false, ) { - # Manage pppoe packages, requires nodo module - if $packages == true { - include nodo::utils::network::pppoe - } - - # Define device in the local zone - if $local_dev == true{ - shorewall::interface { "eth0": - zone => 'loc', - rfc1918 => false, - options => 'tcpflags,blacklist,routefilter,nosmurfs,logmartians', - } - } - - # See http://shorewall.net/two-interface.htm - augeas { 'clampmss': - changes => 'set /files/etc/shorewall/shorewall.conf/CLAMPMSS Yes', - lens => 'Shellvars.lns', - incl => '/etc/shorewall/shorewall.conf', - notify => Service[shorewall]; + class { "firewall::implementations::${implementation}::pppoe": + packages => $packages, + local_dev => $local_dev, } } |