Issue #7485 has been updated by Jacob McCann.
We use SLES 10.3 and SLES 11.1. What I've been doing when I package puppet for our environment is run: sed -i -e 's/output = zypper "--quiet", :install, "-l", "-y", wanted/output = zypper "-n", :install, "-l", "-y", wanted/g' lib/puppet/provider/package/zypper.rb We also have SLES 9 systems, but these don't seem to have zypper (or any package management system, just rpm). So it seems for Enterprise systems is started being included in SLES 10. Is '--quiet' desired to have included? Because if you just drop that then you can use a standard command/arguments to get something that functionally works on all SLES systems, and I'm guessing a good chunk of openSUSE as well. ---------------------------------------- Bug #7485: zypper 0.6 not working with puppet (default version in SLES 10.4 and earlier) https://projects.puppetlabs.com/issues/7485 Author: Thomas Willert Status: Accepted Priority: Normal Assignee: Category: package Target version: Affected Puppet version: 2.7.0rc1 Keywords: zypper sles package provider Branch: The Puppet package provider "zypper" is not working for zypper version 0.6. This version is the default version in SLES 10.x. Zypper version 1.0 is not available until SLES11.x. The zypper provider is asuming version 1.x as it is using the command options "-l", "-y" and "--quiet". I am using these versions: Puppet 2.7.0 Facter 1.5.7 zypper-0.6.200-0.4.49 Error message: err: /Stage[main]/Sudo/Package[sudo]/ensure: change from absent to present failed: Execution of '/usr/bin/zypper --quiet install -l -y sudo' returned 2: Unknown option --quiet Unknown command '_unknown'. >From looking at >"/usr/lib64/ruby/site_ruby/1.8/puppet/provider/package/zypper.rb" I can see >that this provider is coded for zypper 1.0 only. See line 25. For zypper 0.6 to non-interactive way to install a (sudo) rpm is: # zypper -n install sudo For 0.6 compability the Ruby code for zypper should be extended to include a version check. For version 1.0 do this (same as current): # /usr/bin/zypper --quiet install -l -y sudo For version 0.6 do this: # /usr/bin/zypper -n install sudo -- 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.
