On Apr 19, 10:04 am, Nan Liu <n...@puppetlabs.com> wrote:
> On Tue, Apr 19, 2011 at 7:46 AM, jcbollinger <john.bollin...@stjude.org> wrote

[...]

> > Oddly enough, I found bug 1739, closed on 0.24.x, that makes exactly
> > the change from "rpm -e" to "yum -y remove".  That would make the yum
> > provider work like the apt provider.  I didn't find anything
> > suggesting that it was reverted, yet the change is not present in the
> > released code.
>
> The commit is still present, it's implemented as the purge action for
> yum provider. Check:
>
> git show d5e19f
> git blame lib/puppet/provider/package/yum.rb

My bad: I missed that the feature was implemented as purge instead of
ordinary remove.  That does provide a useful insight on the underlying
request: if you want to instruct the yum provider to ensure a package
removed along with any other packages that depend on it, then setting

    ensure => purged

on the package ought to do the trick.  Not that I think it's a good
idea, except possibly in the case to which bug 1739 was addressed,
cyclic dependencies.

Thanks for the clarification.


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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to