From 95bfc2b0ff6c75386506d02d5d0a766e59b08472 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 6 Oct 2010 00:33:50 +0200 Subject: remove cgi-bin dir if we are removing the vhost --- manifests/vhost/modperl.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests/vhost/modperl.pp') diff --git a/manifests/vhost/modperl.pp b/manifests/vhost/modperl.pp index 30083a3..459f424 100644 --- a/manifests/vhost/modperl.pp +++ b/manifests/vhost/modperl.pp @@ -71,7 +71,10 @@ define apache::vhost::modperl( } file{$real_cgi_binpath: - ensure => directory, + ensure => $ensure ? { + 'absent' => 'absent', + default => directory + }, owner => $documentroot_owner, group => $documentroot_group, mode => $documentroot_mode; -- cgit v1.2.3