Commit ffb49e2f authored by Jerome Charaoui's avatar Jerome Charaoui

Can't use ensure_resource() to define an exported resource

parent ef59526b
......@@ -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: {
......
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