]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Enhancing absent behavior
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jan 2010 01:01:23 +0000 (23:01 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jan 2010 01:01:23 +0000 (23:01 -0200)
manifests/init.pp

index 6d8e5d4ce8698dcfdf5c95824a7a7d851c1d4304..ac1f934a9512ddf8f5d7408ca2256e2c4edb5230 100644 (file)
@@ -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'") }
     }