From aaf6dec83004d076d78cd8c04e2aeeb22195a3dd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 6 Jan 2010 23:01:23 -0200 Subject: Enhancing absent behavior --- manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests/init.pp') 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'") } } -- cgit v1.2.3