diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-06 21:45:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-06 21:45:01 -0300 |
commit | b8a4f91cf2c6292d52fb9a8372292cc5a142b92d (patch) | |
tree | 3c49af78ce26268b5755e2a3d37d2d1bf7017fdc /manifests | |
parent | 2a82c6c7bc547ba6046f651a8abc2b4b038a28c1 (diff) | |
download | puppet-backupninja-b8a4f91cf2c6292d52fb9a8372292cc5a142b92d.tar.gz puppet-backupninja-b8a4f91cf2c6292d52fb9a8372292cc5a142b92d.tar.bz2 |
Support for backupdir_ensure variable (5)
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server.pp | 5 |
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 { |