From: Silvio Rhatto Date: Thu, 7 Jan 2010 01:01:23 +0000 (-0200) Subject: Enhancing absent behavior X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=aaf6dec83004d076d78cd8c04e2aeeb22195a3dd;p=puppet-apache.git Enhancing absent behavior --- diff --git a/manifests/init.pp b/manifests/init.pp index 6d8e5d4..ac1f934 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -175,6 +175,11 @@ class apache { && [ ${apache2_sites}-enabled/$vhost -ef ${apache2_sites}-available/$vhost ]'", notify => Exec["reload-apache2"], } + + file { "${apache2_sites}-enabled/$vhost": + ensure => absent, + notify => Exec["reload-apache2"], + } } default: { err ("Unknown ensure value: '$ensure'") } }