summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-06 23:01:23 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-06 23:01:23 -0200
commitaaf6dec83004d076d78cd8c04e2aeeb22195a3dd (patch)
tree787c1a540f20e8cf1873136c1c4408d0d0792d0d /manifests
parent1e5db440c4fa2412b0346b3f1d4b6714943cff16 (diff)
downloadpuppet-apache-aaf6dec83004d076d78cd8c04e2aeeb22195a3dd.tar.gz
puppet-apache-aaf6dec83004d076d78cd8c04e2aeeb22195a3dd.tar.bz2
Enhancing absent behavior
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
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'") }
}