Commit b8a4f91c authored by Silvio Rhatto's avatar Silvio Rhatto

Support for backupdir_ensure variable (5)

parent 2a82c6c7
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment