Hi I''m trying to ensure ypbind and yp-tools are not installed BUT they one of the rare group of rpms that require each other. I have package { "yp-tools": ensure => absent, require => Package["ypbind"], } package { "ypbind": ensure => absent, require => Package["yp-tools"], } but of course get in puppet: May 27 10:06:17 puppetd[14063]: Could not apply complete catalog: Found dependency cycles in the following relationships: Package[ypbind] => Package[yp-tools], Package[ypbind] => Package[portmap], Package[yp-tools] => Package[ypbind] I assume the only method is then use exec to execute the rpm remove? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2008-May-27 14:15 UTC
[Puppet Users] Re: how to force a cycle package dependancy
The work around I just did: # remove old yp-tools and ypbind since they both depending upon each other exec { "remove-yp-tools_ypbind": name => "rpm -e yp-tools ypbind", logoutput => true, onlyif => "rpm -q yp-tools ypbind", } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frank Sweetser
2008-May-27 14:33 UTC
[Puppet Users] Re: how to force a cycle package dependancy
Larry Ludwig wrote:> Hi I''m trying to ensure ypbind and yp-tools are not installed BUT they > one of the rare group of rpms that require each other. > > I have > > package { "yp-tools": > ensure => absent, > require => Package["ypbind"], > } > package { "ypbind": > ensure => absent, > require => Package["yp-tools"], > } > > but of course get in puppet: > > May 27 10:06:17 puppetd[14063]: Could not apply complete catalog: > Found dependency cycles in the following relationships: > Package[ypbind] => Package[yp-tools], Package[ypbind] => > Package[portmap], Package[yp-tools] => Package[ypbind]Are you using the yum provider? If so, just leave the requires out of puppet completely. Puppet will pick one to do first, and yum should handle automatically pulling in all of the required dependencies. When puppet then goes to the other package, it should already be installed as a yum dependency from the previous one, and be all set already. -- Frank Sweetser fs at wpi.edu | For every problem, there is a solution that WPI Senior Network Engineer | is simple, elegant, and wrong. - HL Mencken GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---