Test-Driven Infrastructure with Chef, 2nd Edition
Bring Behavior-Driven Development to Infrastructure as Code
Publisher: O'Reilly Media
Final Release Date: October 2013
Pages: 308

Since Test-Driven Infrastructure with Chef first appeared in mid-2011, infrastructure testing has begun to flourish in the web ops world. In this revised and expanded edition, author Stephen Nelson-Smith brings you up to date on this rapidly evolving discipline, including the philosophy driving it and a growing array of tools. You’ll get a hands-on introduction to the Chef framework, and a recommended toolchain and workflow for developing your own test-driven production infrastructure.

Several exercises and examples throughout the book help you gain experience with Chef and the entire infrastructure-testing ecosystem. Learn how this test-first approach provides increased security, code quality, and peace of mind.

  • Explore the underpinning philosophy that infrastructure can and should be treated as code
  • Become familiar with the MASCOT approach to test-driven infrastructure
  • Understand the basics of test-driven and behavior-driven development for managing change
  • Dive into Chef fundamentals by building an infrastructure with real examples
  • Discover how Chef works with tools such as Virtualbox and Vagrant
  • Get a deeper understanding of Chef by learning Ruby language basics
  • Learn the tools and workflow necessary to conduct unit, integration, and acceptance tests
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyTest-Driven Infrastructure with Chef, 2nd Edition
 
3.8

(based on 6 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (4)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

83%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (4)
  • Well-written (4)
  • Accurate (3)
  • Easy to understand (3)

Cons

    Best Uses

    • Intermediate (4)
    • Novice (4)
    • Student (3)
      • Reviewer Profile:
      • Developer (4)

    Reviewed by 6 customers

    Sort by

    Displaying reviews 1-6

    Back to top

    (3 of 7 customers found this review helpful)

     
    2.0

    Hipsters need not apply

    By Old Perl Guy

    from Metro DC area

    About Me Sys Admin

    Verified Buyer

    Pros

      Cons

        Best Uses

          Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

          The book itself reads fine, if you can get past constantly talking about hipsters; the space dedicated to examples, and that is a significant portion of the book, would have been better served by providing actual workable examples of configuring packages for installation, or configuring aspects of a system. The next largest portion of the book is used to espouse the benefits of DevOps, which I have not yet seen as a beneficial operational model; I can see how the two interrelate, in theory, but I have not seen it work in practice.

          My main issue is with Chef itself. I purchased this book to replace a 3-day course my company wanted me to attend, and after reading the book I came to the realization that Chef can be boiled down to this: "write something you know will break, run it, see the error message(s) when it breaks, fix what is broke, then run it again, repeating until it stops breaking". I am thankful my company spent money on this book rather than spending my time in the class.

          (2 of 2 customers found this review helpful)

           
          4.0

          Start testing your infrastruct right now

          By Alex Soto

          from Barcelona, Spain

          About Me Developer

          Pros

          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Intermediate

            Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

            Test-Driven Infrastructure with Chef, 2nd Edition is a really good book that introduces you to the world of infrastructure as code and how to test your infrastructure. The book is divided into three main sections.

            The first one gives an introduction to why it is important the infrastructure as code approach and what problems solve.

            The second section is a technical introduction on Chef and Ruby (Chef is written in Ruby) to end up by explaining Vagrant and why is important to use it in conjunction with Chef.

            The last section is where it is explained when Chef meets Test. The section starts with an introduction to TDD and BDD, and which tools are available in Ruby ecosystem. After that the author presents us a group of tools that he recommends we should use to write tests for our infrastructure (or to be more precise), how to write tests for our Chef's cookbooks.

            The book is very well written, and the author gives a clear description of the perils of not writing infrastructure tests, and how can they be avoided by writing tests, and he also gives us a list of tools to be used for that purpose, with a lot of examples on how to use them.

            Although you are using Puppet (another approach for infrastructure as code), I think it is a good book to take under consideration because you can learn another technology which resolves the same problem of infrastructure of code, and also because you can abstract some ideas and apply them in your day to day at work.

            The only cons I have found in the book is that all the examples are focused on you are in front of a computer, and you can run all of them and inspect the documentation of the product. It is a good approach to learn, but if you read it in your bed or in public transport, then you must remember to check practical exercises when you had one computer on your fingers.

            In summary a good book to be read by all devops and all people who want to start with infrastructure as code approach.

            (2 of 3 customers found this review helpful)

             
            5.0

            A nicely laid out guide to Chef!

            By DiscoPosse

            from Toronto, ON, Canada

            About Me Designer, Developer, Sys Admin

            Verified Reviewer

            Pros

            • Accurate
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Novice

              Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

              With all of the tools available for infrastructure automation, the next challenge is picking one to use and finding great resources to help you along the road of fully realizing the benefit. Look no further than Test-Drive Infrastructure with Chef by Stephen Nelson-Smith from O'Reilly Books because this is a phenomenal place to begin.

              For those who haven't taken a look at Chef (www.opscode.com), I highly recommend that you get started. Whether running as a standalone implementation using chef-solo, or the full infrastructure (chef open source or chef hosted), there is a huge community behind the product and Stephen's book will get you diving into the code in no time!

              (2 of 4 customers found this review helpful)

               
              4.0

              Excellent started for using Chef

              By dmdeklerk

              from NY

              About Me Developer

              Pros

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

              Cons

                Best Uses

                • Intermediate
                • Novice
                • Student

                Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

                Chef, for me, was hard to get into and after searching the web the total number of tools available just kept on growing. Luckily there has come an end to that and I now know about all the tools, what they do, and which are important to me.

                This book lists most/all?? of those tools, explains their use and most importantly show you all the details to get you started, which was not easy using internet sources only.

                This book teaches you all the chef basics and then takes you by the hand in how to start doing test driven development while creating chef projects.

                I also have read the 1st edition and was happy to know this version uses all the tools that are now up to date and has grown from 90 pages to a 300 pages book.

                (2 of 3 customers found this review helpful)

                 
                4.0

                Good reference book

                By Oliver (ollie) Van Houttum

                from Tonder, Denmark

                Verified Reviewer

                Pros

                • Accurate
                • Concise

                Cons

                • Too basic

                Best Uses

                • Intermediate
                • Novice
                • Student

                Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

                concise and to the point, this book really is a gem on any tech-savvy person's library. if i could ask for anything for the next edition of this book would just be more material and examples. that's all i want for next christmas please :-)

                (3 of 3 customers found this review helpful)

                 
                4.0

                Shortens the learning curve

                By sumit bisht

                from Lucknow, India

                About Me Developer

                Verified Reviewer

                Pros

                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                • Too basic

                Best Uses

                • Novice
                • Student

                Comments about oreilly Test-Driven Infrastructure with Chef, 2nd Edition:

                This book provides ample theoretical material and provides solid material to get started up with TDD while setting up infrastructure. Although the theory is good, but there could have been more practical example.
                Nevertheless, the book does its job to get the new users introduced to this new, but rapidly increasing practice.

                Displaying reviews 1-6

                Back to top

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