]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Remove legacy config
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 31 Jul 2015 20:19:10 +0000 (17:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 31 Jul 2015 20:19:10 +0000 (17:19 -0300)
manifests/site.pp

index 231a32645e7ee3affa1c5e765722a3eff93774ec..00d6f3cee913c43875d3a81964c8620adb96a709 100644 (file)
@@ -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":