From e8e48e7fc60d5551a315f9b0b6a01adfdc0e3558 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 16 Aug 2010 20:35:26 +0200 Subject: only set source or content when we actually manage the file --- manifests/config/file.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'manifests/config') diff --git a/manifests/config/file.pp b/manifests/config/file.pp index 05108ee..3b889ca 100644 --- a/manifests/config/file.pp +++ b/manifests/config/file.pp @@ -29,7 +29,8 @@ define apache::config::file( notify => Service[apache], owner => root, group => 0, mode => 0644; } - case $content { + if $ensure == 'present' { + case $content { 'absent': { $real_source = $source ? { 'absent' => [ @@ -53,6 +54,7 @@ define apache::config::file( content => $content, } } + } } case $operatingsystem { openbsd: { info("no package dependency on ${operatingsystem} for ${name}") } -- cgit v1.2.3