First, you can use the file type instead of the exec type. Source can be a local path.
Second, in a define you must add $name to the title of every resource to prevent duplicate definition errors.
Third, I would build a hash of every file in your list, then call create_resources() on that hash.
Fourth, using a define like you are doing is the right idea, but set the names of the files to be managed as parameters to the type.
Fifth, the file type can recurse through subdirectories, this might help you.
Cheers,
Spencer
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1fe78ed2-d4c1-4c36-aa8d-c3c6dee26a14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.