summaryrefslogtreecommitdiff
path: root/manifests/config
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-16 20:35:26 +0200
committermh <mh@immerda.ch>2010-08-16 20:35:26 +0200
commite8e48e7fc60d5551a315f9b0b6a01adfdc0e3558 (patch)
treed5afa32b59e71fe8509dee8191809017ea6f6fa0 /manifests/config
parent1ef6370acd4fb380c9f63b6557fd8f56c36b4a7f (diff)
only set source or content when we actually manage the file
Diffstat (limited to 'manifests/config')
-rw-r--r--manifests/config/file.pp4
1 files changed, 3 insertions, 1 deletions
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}") }