]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Use nodo::utils::network::analyzer at nodo::role::router
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 12 May 2020 21:04:26 +0000 (18:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 12 May 2020 21:04:26 +0000 (18:04 -0300)
manifests/role/router.pp

index cd65a1e6b0c1a350e95f45af660fc89eabbc0112..0f0aa071d47bb255882693adaa5f013f1fbee702 100644 (file)
@@ -7,12 +7,7 @@ class nodo::role::router inherits nodo::base::appliance {
   include nodo::utils::network::analyzer
 
   # Enable IP forwarding
-  augeas { 'enable_ip_forwarding':
-    changes => 'set /files/etc/shorewall/shorewall.conf/IP_FORWARDING On',
-    lens    => 'Shellvars.lns',
-    incl    => '/etc/shorewall/shorewall.conf',
-    notify  => Service[shorewall];
-  }
+  include firewall::forwarding
 
   # Make sure shorewall is reloaded after dhcp renew
   file { '/etc/dhcp/dhclient-exit-hooks.d/shorewall':