summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/site.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 231a326..00d6f3c 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -115,6 +115,12 @@ define apache::site(
}
}
+ # Legacy configuration
+ file { [ "${apache::sites}-available/$vhost",
+ "${apache::sites}-enabled/$vhost" ]:
+ ensure => absent,
+ }
+
case $source {
true: {
file { "${apache::sites}-available/$vhost.conf":