Issue #4072 has been reported by christian c.
----------------------------------------
Feature #4072: Add remove/uninstall feature to zypper.rb
http://projects.puppetlabs.com/issues/4072
Author: christian c
Status: Unreviewed
Priority: Normal
Assigned to:
Category: provider
Target version:
Affected version: 0.25.4
Keywords:
Branch:
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 [1/2/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"
--
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.