Re: [Puppet Users] How to efficiently manage multiple packages installing in the same directory

Claus Divossen
Tue, 09 Mar 2010 21:45:43 -0000

Hello!

So, you want to distribute all the package contents using puppet? Can''t
you use yum+RPM or any other packaging system to distribute your
binaries, and use puppet to trigger the installation?
﻿
> Given the dynamic nature of the packages (new files are added/removed
> constantly)

That''s unusual. How comes?
﻿
> with error ArgumentError: Duplicate definition: File[/] is already
> defined in file install_foo.pp at line 8; cannot redefine at

Each resource that is managed by puppet needs to be unique to prevent
two manifests from fighting about the same resource. I''m not sure there
is a workaround for your situation.

Best Regards,
  Claus

﻿
On Tue, 2010-03-09 at 11:41 -0800, Mathew Binkley wrote:
> Hi everyone.  I am trying to manage several different packages using
> Puppet.  For the sake of maintainability, each package is installed in
> its own separate puppet directory.  Each package would have a separate
> install_package.pp script and corresponding folder in /etc/puppet/
> files on the server:
>
>     /etc/puppet/files/foo/
>                          etc/
>                          root/
>                          usr/local
>
>    /etc/puppet/files/bar/
>                          etc/
>                          var/lib
>
> To avoid micromanaging, I would like to simply copy over the contents
> of each folder to / on the client. …