aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: {