Issue #7485 has been updated by Daniel Pittman.

Another fix has been merged for an invocation of the command that isn't 
entirely compatible across Puppet versions.
----------------------------------------
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: Merged - Pending Release
Priority: Normal
Assignee: 
Category: package
Target version: 2.7.12
Affected Puppet version: 
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.

Reply via email to