Issue #19760 has been updated by villi villi.

Hi all,

may there a problem with the sun.rb file?

 # Get info on a package, optionally specifying a device.
  def info2hash(device = nil)
    cmd = [command(:pkginfo), '-l']
    cmd << '-d' << device if device
    cmd << @resource[:name]
    pkgs = self.class.parse_pkginfo(execute(cmd, :failonfail => false, :combine 
=> false))
    errmsg = case pkgs.size
             when 0; 'No message'
             when 1; pkgs[0]['ERROR']
             end
    return self.class.namemap(pkgs[0]) if errmsg.nil?
    return {:ensure => :absent} if errmsg =~ /information for 
"#{Regexp.escape(@resource[:name])}"/
    raise Puppet::Error, "Unable to get information about package 
#{@resource[:name]} because of: #{errmsg}"
  end

The resource is configured as follow:
 # Package SMCcurl - curl is a tool for transferring files with URL syntax
 package {'SMCcurl':
  ensure       => latest,
  source       => 
'/rozrhstgp01/unix-ch/puppet/packages/sol10defaultpkg/curl-7.26.0-sol10-x86-local',
  adminfile    => '/var/sadm/install/admin/pkgadmfile_sol10defaultpkg',
  require      => Package['CSWlibgcc-s1'],
 }

When we run puppet we get the following error message:

Debug: Executing '/usr/bin/pkginfo -l SMCcurl'
Error: /Stage[main]/Inf_sol10defaultpkg/Package[SMCcurl]: Could not evaluate: 
Unable to get information about package SMCcurl because of: No message

Thanks for your help ...

----------------------------------------
Bug #19760: install sun packages failed with: Error: 
/Stage[main]/Inf_sol10defaultpkg/Package[SMCcurl]: Could not evaluate: Unable 
to get information about package SMCcurl because of: No message
https://projects.puppetlabs.com/issues/19760#change-87126

* Author: villi villi
* Status: Unreviewed
* Priority: High
* Assignee: 
* Category: package
* Target version: 3.1.x
* Affected Puppet version: 3.1.0
* Keywords: 
* Branch: 
----------------------------------------
Hi all,

we want to install diffrent sun packages with puppet. In version 2.7 it works 
but now with 3.1 it fails.

MESSGAGE:
Error: /Stage[main]/Inf_sol10defaultpkg/Package[SMCcurl]: Could not evaluate: 
Unable to get information about package SMCcurl because of: No message

CONFIG:
 # Package SMCcurl - curl is a tool for transferring files with URL syntax
 package {'SMCcurl':
  ensure       => latest,
  source       => 
'/rozrhstgp01/unix-ch/puppet/packages/sol10defaultpkg/curl-7.26.0-sol10-x86-local',
  adminfile    => '/var/sadm/install/admin/pkgadmfile_sol10defaultpkg',
  require      => Package['CSWlibgcc-s1'],
 }



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to