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

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


When Chef was created, the Chef developers delivered a tool that had a lot of capabilities right out of the box. The variety of resources that it supported natively was very useful and quite extensive. But, of course, being a finite tool, it could not handle every possible type of resource that existed or could exist in the future. Knowing this, the Chef developers built in a feature set to allow users to augment the capabilities and support an ever-growing set of resources.

This feature set is known as Lightweight Resource Providers (LWRP) and Heavyweight Resource Providers (HWRP). These features allow users to define new resources and create the providers to support those resources, making Chef infinitely customizable.

The two types, LWRP and HWRP, are differentiated by the level of complexity used to define the resources and the providers being created. LWRPs are created using the Chef DSL (Domain-specific Language) and are...