Book Image

Mastering Chef Provisioning

By : Earl Waud
Book Image

Mastering Chef Provisioning

By: Earl Waud

Overview of this book

This book will show you the best practices to describe your entire infrastructure as code. With the help of this book you can expand your knowledge of Chef because and implement robust and scalable automation solutions. You can automate and document every aspect of your network, from the hardware to software, middleware, and all your containers. You will become familiar with the Chef’s Chef Provisioning tool. You will be able to make a perfect model system where everything is represented as code beneath your fingertips. Make the best possible use of your resources, and deliver infrastructure as code, making it as versionable, testable and repeatable as application software
Table of Contents (17 chapters)
Mastering Chef Provisioning
Credits
Foreword
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Custom Resources

In this chapter, we're going to discuss the exciting changes released in Chef 12.5 that transform the old LWRPs and HWRPs into the much easier-to-create and use Custom Resources. We'll start with a look at the differences between the old and new, but by the end of the chapter, the reader will know how to build and use Custom Resources.

"To me, my recipes are priceless." – Colonel Sanders

Here is a list of the topics covered in this chapter:

  • Out with the old (LWRPs), in with the new (Custom Resources)

  • Creating an example use case

  • Creating and using a Custom Resource

  • Making a Custom Resource more reusable

  • Subclassing a Custom Resource