aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-07 16:55:18 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-07 16:57:54 -0400
commitffb49e2f0d7420d21828c66f15e2e45fa25c09f1 (patch)
tree9146363a141c00252d0710901d50ecdf1370da1c
parentef59526bd21b4e95ab97159e9c728938ef80e15f (diff)
downloadpuppet-backupninja-ffb49e2f0d7420d21828c66f15e2e45fa25c09f1.tar.gz
puppet-backupninja-ffb49e2f0d7420d21828c66f15e2e45fa25c09f1.tar.bz2
Can't use ensure_resource() to define an exported resource
-rw-r--r--manifests/server.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index d73df1f..540fc8d 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -73,13 +73,13 @@ class backupninja::server (
}
}
- ensure_resource('file', $dir, {
- 'ensure' => 'directory',
- 'mode' => '0750',
- 'owner' => $user,
- 'group' => 0,
- 'tag' => $backuptag
- })
+ if !defined(File["$dir"]) {
+ @@file { "$dir":
+ ensure => directory,
+ mode => 0750, owner => $user, group => 0,
+ tag => "$backuptag",
+ }
+ }
case $installuser {
true: {