aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-06 21:45:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-06 21:45:01 -0300
commitb8a4f91cf2c6292d52fb9a8372292cc5a142b92d (patch)
tree3c49af78ce26268b5755e2a3d37d2d1bf7017fdc /manifests
parent2a82c6c7bc547ba6046f651a8abc2b4b038a28c1 (diff)
downloadpuppet-backupninja-b8a4f91cf2c6292d52fb9a8372292cc5a142b92d.tar.gz
puppet-backupninja-b8a4f91cf2c6292d52fb9a8372292cc5a142b92d.tar.bz2
Support for backupdir_ensure variable (5)
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 {