Feature #4072

Add remove/uninstall feature to zypper.rb

Added by christian c almost 2 years ago. Updated 4 months ago.

Status:Accepted Start date:06/25/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:provider
Target version:2.7.x
Affected Puppet version:0.25.4 Branch:
Keywords:devtriage
Votes: 0

Description

If the forthcomming zypper-provider only supports to install packages it may come to such situations:

zypper install -y sendmail Loading repository data… Reading installed packages… Resolving package dependencies…

Problem: exim-4.69-70.13.x86_64 conflicts with sendmail provided by sendmail-8.14.3-50.9.i586 Solution 1: deinstallation of exim-4.69-70.13.x86_64 Solution 2: do not ask to install a solvable providing sendmail

Choose from above solutions by number or cancel [½/C]: c

Puppet will always choose to cancel, so there is no chance to successfully install sendmail. But if you would remove exim with zypper, zypper would automatically install sendmail or postfix. So with some control mechnanism in the puppet manifest it should be possible to install sendmail.

I went through some other package-providers to see how they solve the problem and came up with the following for zypper.rb:

#

def uninstall

 zypper :remove, '-y', @resource[:name]

end

#

I tested it by executing some puppetruns and packages could be removed successfully –> “puppetd[ 2088 ]: (//allgemein::sendmail/Package[sendmail]/ensure) removed”

History

Updated by James Turnbull almost 2 years ago

  • Status changed from Unreviewed to Accepted
  • Assignee set to Markus Roberts
  • Target version set to 2.6.0

This should go into 2.6 – it’s clearly missing from the provider.

Updated by James Turnbull almost 2 years ago

  • Target version changed from 2.6.0 to 49

Updated by James Turnbull over 1 year ago

  • Target version changed from 49 to 2.7.x

Updated by Joshua Lifton 5 months ago

  • Assignee deleted (Markus Roberts)

This issue was assigned to a former Puppet Labs employee. Adding back to the pool of unreviewed issues.

Updated by Joshua Lifton 5 months ago

This issue was assigned to a former Puppet Labs employee. Adding back to the pool of unreviewed issues.

Updated by Ben Hughes 4 months ago

  • Description updated (diff)
  • Status changed from Accepted to Unreviewed

Updated by Michael Stahnke 4 months ago

  • Description updated (diff)
  • Status changed from Unreviewed to Accepted
  • Keywords set to devtriage

Still exists in 2.7.9

Also available in: Atom PDF