jimbob palmer
2012-Jan-26 14:56 UTC
[Puppet Users] How do *you* handle yumrepo dependency chains?
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 -- 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-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.
Michael Stahnke
2012-Jan-26 17:57 UTC
Re: [Puppet Users] How do *you* handle yumrepo dependency chains?
On Thu, Jan 26, 2012 at 6:56 AM, jimbob palmer <jimbobpalmer@gmail.com> wrote:> 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? >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-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.
Dan White
2012-Jan-26 18:38 UTC
Re: [Puppet Users] How do *you* handle yumrepo dependency chains?
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) ----- jimbob palmer <jimbobpalmer@gmail.com> wrote:> 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 > > -- > 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-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.
jcbollinger
2012-Jan-27 15:37 UTC
[Puppet Users] Re: How do *you* handle yumrepo dependency chains?
On Jan 26, 8:56 am, jimbob palmer <jimbobpal...@gmail.com> wrote:> 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?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 -- 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.