aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 8a0f5e5..6ed87c8 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -32,7 +32,10 @@ class backupninja::server {
file { "$real_backupdir":
ensure => "$real_backupdir_ensure",
mode => 0710, owner => root, group => "backupninjas",
- require => File["$real_backupdir_ensure"],
+ require => $real_backupdir_ensure ? {
+ 'directory' => undef,
+ default => File["$real_backupdir_ensure"],
+ }
}
if $nagios_server {