How do *you* handle yumrepo dependency chains?

45 views
Skip to first unread message

jimbob palmer

unread,
Jan 26, 2012, 9:56:10 AM1/26/12
to puppet...@googlegroups.com
Say you have a RHEL6 environment. You have some packages you want installed, these rely on a yumrepo. That yumrepo relies on an rpm-gpg key being installed.

Now you get some RHEL5 boxes to add to the network. Your yumrepo RHEL6.2 with a dependency on the RHEL6 signing key now causes a problem: all of the rpms you need are the same, but those rpms rely on the RHEL6.2 yumrepo which is wrong, and that relies on the RHEL6 signing key which is wrong too.

What approach do you use?

Thanks.
JB

Michael Stahnke

unread,
Jan 26, 2012, 12:57:46 PM1/26/12
to puppet...@googlegroups.com
I read this description a couple times and don't think I quite
understand the question. You can specify keys per client repo. You
can also use execs to install rpm-gpg keys.

Is the issue you have one yum repo and you're pointing both EL5 and
EL6 boxes at it?


> Thanks.
> JB
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/94RonUV1yYYJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Dan White

unread,
Jan 26, 2012, 1:38:52 PM1/26/12
to puppet...@googlegroups.com
Cobbler

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

jcbollinger

unread,
Jan 27, 2012, 10:37:07 AM1/27/12
to Puppet Users
Option 1: define separate Yumrepos for the RHEL5 repositories, with
appropriate dependencies, and define Packages' Yumrepo dependencies
conditionally based on OS release.

Option 2: define the Yumrepo properties conditionally based on OS
release.

Which of these best suits may depend on what work you have already
done. Surely you are not declaring RHEL6 Yumrepos for your RHEL5
boxes (or else fix that!), so just make your Packages 'require' the
Yumrepos that you are actually declaring. That's the essence of both
options.


John
Reply all
Reply to author
Forward
0 new messages