Many moons ago I wrote a blog post called “Creating Puppet types and providers is easy…". It’s one of the most popular posts on this blog and regularly gets a flurry of hits.
Puppet Types and Providers is available as a Kindle ebook as well as in a dead tree form.
Go forth and create many types and providers! :)