Puppet Types and Providers
Extending Puppet with Ruby
Publisher: O'Reilly Media
Released: December 2012
Pages: 92

Puppet’s true power exists in the simple resource model it uses to manage the state of complex operating systems. This concise guide shows you how to extend that model and implement custom functionality on top of Puppet by working with the type and provider APIs.

Two experts from Puppet Labs explain the concepts behind these APIs, and provide instructions and examples to help you write your own fully functional types and providers. You’ll also delve into Puppet’s source code to get a better understanding of how types and providers are implemented internally. If you’re familiar with basic Puppet concepts, you’re ready to get started.

  • Learn the fundamental concepts behind resources, and become familiar with the structure of Puppet’s Resource Model
  • Discover how the type API is used to create new resource types that Puppet can manage
  • Understand how providers interact with the system to achieve the desired state of a declared resource
  • Explore advanced features to get a more complete understanding of how Puppet works
  • Simplify the troubleshooting process when developing types and providers
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyPuppet Types and Providers
 
4.0

(based on 3 reviews)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Accurate (3)
  • Concise (3)
  • Easy to understand (3)
  • Well-written (3)

Cons

    Best Uses

    • Intermediate (3)

    Reviewed by 3 customers

    Sort by

    Displaying reviews 1-3

    Back to top

     
    4.0

    A must read book

    By danielcsgomes

    from Lisbom, Portugal

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly Puppet Types and Providers:

      The book is well written and structured. Is a short book but very focused on his subject. Also it is very easy to follow.

      If you are a puppet module developer this book is a must have and you want to have it always on your desk. HIghly recommended.

       
      4.0

      Good insight on a dark subject

      By AlexRRR

      from Zürich, Switzerland

      About Me Developer, Sys Admin

      Verified Reviewer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

      • Testing Examples Missing

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Puppet Types and Providers:

      I took on writing my own puppet provider/types without this book just relying on existing providers from puppetlabs. This became almost close to imposible as examples and documentation is really scarce. In one of my searches while being stuck I found this book and bought it.

      The book is small, but it is very well written and contains meaningful examples. Recomended for anyone trying to write their own providers/types.

      I have only given it 4 stars as there is no documentation on testing the providers/types with rspec, which is a must for any serious developer

       
      4.0

      One stop shop for answers & explanations

      By Unixdaemon

      from London

      About Me Sys Admin

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice

        Comments about oreilly Puppet Types and Providers:

        Over the years I've realised that tools I can extend always return the effort taken to learn them many times over. While a number of us have worked through the source code of existing Puppet types and providers and the handful of official wiki pages and unofficial blog posts the release of Puppet Types and Providers means that the rest of you won't have to - this book brings most of the power with far, far less of the pain and uncertainty.

        The book itself is a short one. Its contents are focused, well chosen examples and explanations that you'll actually be able to find and read when you need them rather than multiple pages covering every part of API trivia. This book may not cover every nook and cranny but I'd have no problem recommending it to co-workers who want to know the how and why of writing their own types and feeling safe that they'd be able to hit the ground running.

        There are a couple of things that I'd liked to have seen covered, such as writing tests for your new types and providers, types with composite namevars and maybe an appendix on how to interrogate your puppet catalog (considering how well the short appendix on the ruby debugger comes across I think the authors would have nailed it) but these are things that can be covered in the second edition - or a larger book that covers all the puppet extension points (hint hint O'Reilly). I do think that this book will be one that stays within reach whenever you're doing Puppet work and will be useful for much more than the initial few readthroughs.

        A useful, clearly written, book that saves a lot of source code diving and manually compiling information from many disparate online sources. Currently the best place to learn about how puppet types and providers work and how to create your own. 7/10

        Displaying reviews 1-3

        Back to top

         
        Buy 2 Get 1 Free Free Shipping Guarantee
        Buying Options
        Immediate Access - Go Digital what's this?
        Ebook: $15.99
        Formats:  DAISY, ePub, Mobi, PDF
        Print & Ebook: $21.99
        Print: $19.99