summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-07-17 14:53:44 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-07-17 14:53:44 +0000
commitc3e6cc836b600a56fec2593fd1599be7ec20829b (patch)
treeb778515e49ea78d783ad580a9c7908650c5c704f
parent2a0a2c3197eee247b7015ba979a12bd5eb0efa5c (diff)
downloadpuppet-shorewall-c3e6cc836b600a56fec2593fd1599be7ec20829b.tar.gz
puppet-shorewall-c3e6cc836b600a56fec2593fd1599be7ec20829b.tar.bz2
added debian default, to enable the shorewall
git-svn-id: https://svn/ipuppet/trunk/modules/shorewall@1870 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
-rw-r--r--files/debian/default17
-rw-r--r--manifests/init.pp10
2 files changed, 27 insertions, 0 deletions
diff --git a/files/debian/default b/files/debian/default
new file mode 100644
index 0000000..e2f4971
--- /dev/null
+++ b/files/debian/default
@@ -0,0 +1,17 @@
+# prevent startup with default configuration
+# set the below variable to 1 in order to allow shorewall to start
+startup=1
+
+# if your shorewall's configuration need to detect the ip address of a ppp
+# interface you must list such interface in "wait_interface" to get shorewall to
+# wait until the interface is configured otherwise the script will fail because
+# it won't be able to detect the address.
+#
+# Example:
+# wait_interface="ppp0"
+# or
+# wait_interface="ppp0 ppp1"
+# or, if you have defined in /etc/shorewall/params
+# wait_interface=
+
+# EOF
diff --git a/manifests/init.pp b/manifests/init.pp
index 7363628..7c2381d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -25,6 +25,7 @@ class shorewall {
case $operatingsystem {
gentoo: { include shorewall::gentoo }
+ debian: { include shorewall::debian }
default: { include shorewall::base }
}
@@ -255,3 +256,12 @@ class shorewall::gentoo inherits shorewall::base {
category => 'net-firewall',
}
}
+
+class shorewall::debian inherits shorewall::base {
+ file{'/etc/default/shorewall':
+ source => "puppet://$server/shorewall/debian/default",
+ require => Package['shorewall'],
+ notify => Service['shorewall'],
+ owner => root, group => 0, mode => 0644;
+ }
+}