[Puppet Users] Copying multiple files to multiple locations

Matthijs Suringa
Fri, 09 Aug 2013 14:06:42 -0000

Hi,

I''m, still relatively new to Puppet, so there might be something I am
overlooking.
Anyway, my situation is that I can install 1 or multiple tomcat instances
on a machine, and in order for me to ensure that they can talk to all
databases we run (test environments) I want to copy all DB drivers into
each instance.

So basically I have a defined type for my tomcat instance, which does the
installation of the tomcat binaries and configured the necessary files. Per
instance I need to copy X files into the lib directory.
I wanted to do this with another defined type, so I could "loop"
through an
array of DB-drivers. However, because both instances would require the same
files, I am running into the "duplicate declaration" error.

Is there any way to resolve this issue?
Thanks