someara/pkgin-cookbook — pull request #4 by erikh (2013-04-14 03:50:29+00:00)
Title: Smartos implicit package resource

This lets the pkgin provider also work on `package` resources. It tries to be smart about portability.

The result is that things that normally use the package resource, if on smartos and this feature is supported (chef 11 at least, not sure when it was added though). Will use the pkgin provider instead of just complaining. This means it's suitable to slap the default recipe in a "base" role that works with smartos and other operating systems, and it just DTRT when on smartos -- similar to dpkg, rpm, etc. Obviously the package names still have to be right.

I haven't touched the version information but I did add a name to the metadata.rb, because using it with a certain cookbook resolver soiled itself when I gave it a path that had a different basename than the cookbook name. Yay.

Hope you like it, already using it on a homogeneous network.