]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
common: trivial passthrough for ensure
authorroot <root@puppetmaster.black.co.at>
Tue, 9 Oct 2007 08:55:09 +0000 (10:55 +0200)
committerroot <root@puppetmaster.black.co.at>
Tue, 9 Oct 2007 08:55:09 +0000 (10:55 +0200)
manifests/defines/config_file.pp

index e539c6d97b4c854e0364071dc7f8b3b1a6f99830..6188ac48f44c332399676cc85de197c4fe73a4f2 100644 (file)
@@ -27,8 +27,9 @@
 #              notify => Exec["reload-apache2"]
 # }
 
-define config_file ($content) {
+define config_file ($content, $ensure = 'present') {
        file { $name:
+               ensure => $ensure,
                content => $content,
                # keep old versions on the server
                backup => server,