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. 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?
Doug
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
I got it.
I had to put require => undef in the package {} sections in yum::client.
Doug.
On Mon, Jun 28, 2010 at 10:32 PM, Douglas Garstang
<doug.garstang@gmail.com> 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. 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?
>
> Doug
>
--
Regards,
Douglas Garstang
http://www.linkedin.com/in/garstang
Email: doug.garstang@gmail.com
Cell: +1-805-340-5627
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Woops, I didn''t see your message before I sent mine. On Jun 28, 2010, at 10:41 PM, Douglas Garstang wrote:> I got it. > > I had to put require => undef in the package {} sections in yum::client. > > Doug. > > On Mon, Jun 28, 2010 at 10:32 PM, Douglas Garstang > <doug.garstang@gmail.com> 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. 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? >> >> Doug >> > > > > -- > Regards, > > Douglas Garstang > http://www.linkedin.com/in/garstang > Email: doug.garstang@gmail.com > Cell: +1-805-340-5627 > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.