Re: [Puppet Users] dependencies

Michael DeHaan
Thu, 18 Mar 2010 13:46:51 -0000

On Wed, Mar 17, 2010 at 7:35 PM, Christopher Johnston
<chjohnst@gmail.com> wrote:
> I guess my only gripe here is I have about 2 dozen modules most of install
> some form of a pkg from yum.  So they all have a direct dependency on my
yum
> module to do the right thing.  I would hate to have to put a require in
> every single instance that I call the method to install a pkg.  Any ideas
on
> on how to simplify this to ensure yum is the very first thing that gets
> configured on my system?
>                require => [ Class["yum"],
>

What if we taught the yum provider to know about "yum groupinstall" ?

That way you could add packages into comps.xml and reference them
together, which would also be faster than referencing each one by one.

While it would not technically be a ''package'' this might be
also a
decent workaround solution to the ''yum transactions are not
batched''
problem.

package {   "stuff"
     ensure => latest,
     is_group => true,
     ...
}

Thoughts?

--Michael