summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+ }
+}