From 34f76230f691de880641f15bfcb84fa7340393f7 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 23 Feb 2010 12:33:05 +0100 Subject: include mod_security depending on the run_mode --- manifests/vhost/template.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests/vhost') diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp index b0b2e8d..bba3437 100644 --- a/manifests/vhost/template.pp +++ b/manifests/vhost/template.pp @@ -56,7 +56,10 @@ define apache::vhost::template( $ldap_user = 'any' ){ if $mod_security { - include mod_security + case $run_mode { + 'itk': { include mod_security::itk } + default: { include mod_security } + } } $real_path = $path ? { -- cgit v1.2.3 From 973e9107bb29bcd98868fabda464dc71e6d8af23 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 9 May 2010 20:58:32 +0200 Subject: redirects don't need mod_security --- manifests/vhost/redirect.pp | 1 + 1 file changed, 1 insertion(+) (limited to 'manifests/vhost') diff --git a/manifests/vhost/redirect.pp b/manifests/vhost/redirect.pp index 7422629..10b78bf 100644 --- a/manifests/vhost/redirect.pp +++ b/manifests/vhost/redirect.pp @@ -27,6 +27,7 @@ define apache::vhost::redirect( domainalias => $domainalias, server_admin => $server_admin, allow_override => $allow_override, + mod_security => false, options => $target_url, ssl_mode => $ssl_mode, } -- cgit v1.2.3