Test-Driven Infrastructure with Chef by Nelson-Smith Stephen

Test-Driven Infrastructure with Chef by Nelson-Smith Stephen

Author:Nelson-Smith, Stephen [Stephen Nelson-Smith]
Language: eng
Format: epub
Tags: COMPUTERS / System Administration / General
ISBN: 9781449313173
Publisher: O'Reilly Media, Inc.
Published: 2011-06-12T16:00:00+00:00


* * *

[21] https://github.com/wycats/thor

[22] For more complex requirements, or sometimes just because the test suits it, the “controller” container can be used for the verification portion of tests. We won’t be making use of the controller in this book.

Chapter 6. Cucumber-Chef: A Worked Example

We’ve come a long way in this book. We’ve explored the thinking behind the Infrastructure as Code paradigm, and outlined some of the risks associated with its implementation. We’ve introduced Chef as a powerful framework for automating infrastructures at scale, and have set ourselves up to use the Opscode platform. We’ve covered the ideas behind test-driven and behavior-driven development, and we’ve described the genesis of a new tool for making possible the automated testing of infrastructures built using Chef. We’ve installed this tool, Cucumber-Chef, and have an idea of its basic architecture. In this chapter, we’re going to make use of the platform that Cucumber-Chef provides, and do some real test-driven infrastructure development.

As we work through this chapter, we’ll introduce some of the concepts and workflows that characterize building infrastructure using Chef, so this chapter really serves not only as an introduction to the idea of test-driven infrastructure, but also as a tutorial for getting started with Chef.

Let’s just review the prerequisites to continue through this chapter of the book. At this stage you should have:

Chef installed via RubyGems



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.