summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-12-04 15:50:08 -0500
committerMicah Anderson <micah@riseup.net>2012-12-04 15:50:08 -0500
commit3bc680557ca4a70887c99ab9d53cd446730ec00d (patch)
tree6d4e6636c5a1c99b92ce575c4c050bf4d0a21e0a /puppet/modules
parent22e658810e6e47a7d10d06a28610a634a38877b8 (diff)
set ip_forwarding using augeas
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_shorewall/manifests/defaults.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/puppet/modules/site_shorewall/manifests/defaults.pp b/puppet/modules/site_shorewall/manifests/defaults.pp
index 88981e5f..0ee20744 100644
--- a/puppet/modules/site_shorewall/manifests/defaults.pp
+++ b/puppet/modules/site_shorewall/manifests/defaults.pp
@@ -10,4 +10,13 @@ class site_shorewall::defaults {
shorewall::rule_section { 'NEW': order => 10; }
+ include augeas
+
+ augeas { 'enable_ip_forwarding':
+ changes => 'set /files/etc/shorewall/shorewall.conf/IP_FORWARDING Yes',
+ lens => 'Shellvars.lns',
+ incl => '/etc/shorewall/shorewall.conf',
+ notify => Service[shorewall];
+ }
+
}