summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-09-28 23:12:50 +0200
committermh <mh@immerda.ch>2009-09-28 23:12:50 +0200
commit6de1a5b0270ee383488df64ddfb5308da66ef352 (patch)
tree0da506d41f0b00326463d7cbeb26e719e5800d86
parente24a9894574ba609fb7d2924fc71bc89bdb03688 (diff)
add shorewall rules
-rw-r--r--manifests/daemon.pp4
-rw-r--r--manifests/init.pp6
2 files changed, 9 insertions, 1 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index 87ec421..c294ad1 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -25,4 +25,8 @@ class git::daemon {
hasstatus => true,
require => [ File['/etc/sysconfig/git-daemon'], File['/etc/init.d/git-daemon'] ],
}
+
+ if $use_shorewall {
+ include shorewall::rules::gitdaemon
+ }
}
diff --git a/manifests/init.pp b/manifests/init.pp
index aa32b42..812830c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -12,5 +12,9 @@
#
class git {
- include git::base
+ include git::base
+
+ if $use_shorewall {
+ include shorewall::rules::out::git
+ }
}