summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-07-31 17:19:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-07-31 17:19:10 -0300
commit37b13a9a980da09abea7e73082a82bd58860c520 (patch)
tree8300d06f221abe0edb4db7cf2051a9f9853243f5
parent04554ac02a16ae3a00407667f11228f057e8d316 (diff)
downloadpuppet-apache-37b13a9a980da09abea7e73082a82bd58860c520.tar.gz
puppet-apache-37b13a9a980da09abea7e73082a82bd58860c520.tar.bz2
Remove legacy config
-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":