On Jun 28, 2010, at 10:32 PM, Douglas Garstang wrote:

> So... somehow on a previous implementation, I was able to set
> everything up so that all my yum repo's where in place before any
> packages got installed. I'm not exactly sure how I did it due to
> puppet's awful scoping.

This really isn't a good way to get help in a list where you can assume most 
people like puppet.

> Now that I am trying to do it again, it ain't
> working.
> 
> I put a:
> 
>    Package {
>        provider => yum,
>        require => [ Class['yum::client'], Exec["yum-clean-all"] ]
>    }
> 
> in site.pp, where yum::client installs the repo's, but puppet then
> bitches about cyclic dependancies. Is there a way to do this?

I assume that Class['yum::client'] is installing a package, or calling an exec 
that depends on a package.

Find it like this:
http://bitfieldconsulting.com/puppet-dependency-graphs

The explicitly set the require line for the resource to remove the implicit 
dependency.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to