diff options
author | mh <mh@immerda.ch> | 2009-09-28 23:12:50 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-09-28 23:12:50 +0200 |
commit | 6de1a5b0270ee383488df64ddfb5308da66ef352 (patch) | |
tree | 0da506d41f0b00326463d7cbeb26e719e5800d86 | |
parent | e24a9894574ba609fb7d2924fc71bc89bdb03688 (diff) |
add shorewall rules
-rw-r--r-- | manifests/daemon.pp | 4 | ||||
-rw-r--r-- | manifests/init.pp | 6 |
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 + } } |