From 6de1a5b0270ee383488df64ddfb5308da66ef352 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 28 Sep 2009 23:12:50 +0200 Subject: add shorewall rules --- manifests/daemon.pp | 4 ++++ manifests/init.pp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 + } } -- cgit v1.2.3