Issue #11004 has been updated by Ben Hughes.

Trying it out now on our Solaris [sparc] 11 box.

<pre>
[root@mundilfari:puppet]# puppet agent -t --environment sunosbase               
                                                     
puppet:stschulte/feature/2.7.x/11004:6aa8441
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Caching catalog for sparc.example.org
info: Applying configuration version '6b5d038'
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"library/python-2/pycurl-26                        7.19.0.1-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"network/dns/bind                                  9.6.3.4.3-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"print/cups/filter/foomatic-db                     0.20080903-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"print/cups/filter/foomatic-db-engine              0.20080903-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"service/network/dns/bind                          9.6.3.4.3-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"service/network/ftp                               1.3.3.0.5-0.175.0.0.0.2.537 
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"service/network/ntp                               4.2.5.200-0.175.0.0.0.2.537 
i--"
err: /Stage[main]/Ssh/Package[network/ssh]: Could not evaluate: Could not get 
latest version: undefined method `parse_line' for 
#<Puppet::Type::Package::ProviderPkg:0x277beb8>
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line 
"service/network/ntp                               4.2.5.200-0.175.0.0.0.2.537 
i--"
err: /Stage[main]/Ntp/Package[ntp]/ensure: change from absent to present 
failed: Execution of '/usr/bin/pkg install ntp' returned 4: No updates 
necessary for this image.
</pre>

May need to expand the regex. (should I comment here or the pull request?)
----------------------------------------
Feature #11004: Solaris 11 GA & pkg
https://projects.puppetlabs.com/issues/11004#change-61484

Author: Robert van Veelen
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/719


Oracle has changed the output format of pkg again for the final release of s11. 
The "status" field is no longer present in the output of "pkg list -H". There 
is now an IFO field that has the following status flags (from the man page):

         The last column contains a set of flags  that  show  the
         status of the package:

             o    An i in the I column shows that the package  is
                  installed.

             o    An f in the F column shows that the package  is
                  frozen.

             o    An o in the O column shows that the package  is
                  obsolete.  An  r in the O column shows that the
                  package has been renamed  (a  form  of  obsole-
                  tion).

Using the work done for Bug #7986 , I have tried the following with some 
success (though this only uses the 'I' column):



-- 
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