Hi Folks, Just an update. I essentially wrote a wrapper for pkgadd in ruby that: - Searches a web based repo for <pkg_name> - if found, grabs the catalog line (includes pkg_name/file_name/md5sum/version) - installs using an admin file (most likely delivered by puppet)
Then just wrote a provider that inherited from sun.rb that had a different install command, removed the need for a source argument and removed adminfile/responsefile/options from the install function. Needs a little cleanup for sure but seems to work nicely. Reason I chose this is method is I can now do the same for HP-UX and AIX with a minimal of effort. Also, this is for very OLD versions of Solaris, HP-UX and AIX. Better that I can have it all uniform. Thanks for the input all, it has been helpful. Regards - Geoff On Tuesday, 20 November 2012 13:43:49 UTC+11, Geoff Hargreaves wrote: > > Hi Folks. > > I may be in the wrong forum here but here goes. > > I have seen entries on this topic over the web extolling the virtues of > OpenCSW and Blastwave as yum and apt-get equivalents for Solaris. The > problem I run into is the dependency tree for these products. I have been > looking at OpenCSW and see it requires many packages from OpenCSW mirrors > to run up pkgutil. In a largish environment with fairly strict policies on > using pre-compiled binaries from external sources, I end up with SMC / CSW > / SUNW / <our internal pkgs> in the mix and some unhappy legal / security > staff. > > The idea I would like to put forward is to write a wrapper for > pkgadd/pkgrm/pkginfo/etc.. in Ruby. Keeping it as separate from puppet as > yum and apt-get to keep the model standard with a repo residing on a web > server with a catalog. My reason for Ruby is that the solaris host that is > a puppet client will already have Ruby installed so I have no extra guff to > install on my closely guarded clients. > > At this stage it is just something I was thinking about this morning. I > would like to know if there is any interest in here for such a thing ? Am I > insane ? Has it already been done ? > > Regards - Geoff > > > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-dev/-/7wUQrKYlvDAJ. 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-dev?hl=en.
