diff options
-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 + } } |