On Fri, Sep 17, 2010 at 4:32 AM, John Warburton <jwarbur...@gmail.com> wrote: > Hi > > I would like to be able to access the hash "info2hash" in > lib/puppet/provider/package/sun.rb which is a list of all Solaris packages > on a Sun server > > Is it possible to query this so that I don't have to run "pkginfo -l" > myself, and probably create a fact for each package with its version number? > My Ruby is basic, so I'm not quite sure how to read providers. > > What I am trying to do is have my own Solaris package provider that is > versionable without having to resort to supporting Blastwave/Sunfreeware > like external scripts. The last comment for the "update" definition doesn't > make me comfortable "This will probably often fail"
It sounds like you want to subclass the provider yourself so you get that hash/method for free. > > Thanks > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.