Open
Description
The mkdir_p function can be quite useful but it doesn't take much to make it unusable in the catalog due to double resource definitions. I basically recreated mkdir_p as a defined resource before finding extlib and solved this issue by adding a filter to the resulting array. Add:
.filter|$_dir| {!defined(File[$_dir])} # filter out File resources already defined in the catalog
to
puppet-extlib/functions/mkdir_p.pp
Line 16 in 37b738b
I've tested it and it works, it filters out already elsewhere defined resources (in my case some root directories which are created as mount points).
Metadata
Metadata
Assignees
Labels
No labels