Issue #17690 has been reported by Oliver Schad.

----------------------------------------
Bug #17690: Provider 'yum' should be used for 'absent'
https://projects.puppetlabs.com/issues/17690

Author: Oliver Schad
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.1
Keywords: 
Branch: 


we had here a cyclic dependency between two packages with redhat: you
can't remove them with rpm but the logs shows that for state

ensure => absent

the rpm provider is used although yum is installed and is used for 

ensure => installed. So this is a provider selection issue. Also specifying the
provider "yum" doesn't help, it is ignored.

We solved it with state

ensure => purged

because this state is supported by the yum provider, but not by the rpm
provider. This leads to a change in the puppet dashboard for this system
for every puppet run.

So we introduced a define with a yum call, which makes a "remove".

When I read provider/package/yum.rb I don't see an "uninstall" method,
only "purge". The rpm provider offers only "uninstall" not "purge".

So in my opinion this is a bug cause cyclic dependencies are a use case
and yum can handle this. So my suggestion is to extend the yum provider
to support the uninstall.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to