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 ( ...@@ -73,13 +73,13 @@ class backupninja::server (
} }
} }
ensure_resource('file', $dir, { if !defined(File["$dir"]) {
'ensure' => 'directory', @@file { "$dir":
'mode' => '0750', ensure => directory,
'owner' => $user, mode => 0750, owner => $user, group => 0,
'group' => 0, tag => "$backuptag",
'tag' => $backuptag }
}) }
case $installuser { case $installuser {
true: { 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