Book Image

Managing Windows Servers with Chef

By : John Ewart
Book Image

Managing Windows Servers with Chef

By: John Ewart

Overview of this book

<p>This book begins with an introduction to the functionality and benefits of using Chef to manage Windows systems. From there, you are shown an overview of the Chef architecture and how to prepare a Windows host so that it can be managed by Chef, followed by an example of writing code to install a popular .NET application with Chef.<br /><br />This book looks at how Windows system administrators can effectively leverage Chef as an automated system management tool to simplify their lives through managed infrastructure. Included are practical examples that will help you to understand how to take advantage of Chef when managing your infrastructure.<br /><br />By the end of the book, you will be able to deploy software, provision hosts (including cloud servers), develop and test recipes for multiple platforms, and manage Windows hosts using the powerful tools that Chef provides.</p>
Table of Contents (13 chapters)

Examining the cookbook


We will dive into a cookbook that has been written specifically to address the installation of the Umbraco CMS along with its requirements. The source code for this cookbook is available on GitHub at http://github.com/johnewart/umbraco-cookbook.

Chef cookbooks share the same layout and structure whether they target Windows or other platforms. The primary difference in a cookbook that supports Windows will be that its metadata.rb file declares that the cookbook supports Windows and the recipes contained within the cookbook will support Windows through a combination of Windows-specific resources and conditional logic that may behave differently on the Windows platform. The following screenshot shows the layout of the umbraco cookbook:

Here, you will notice that the cookbook looks just like any other cookbook; it can contain folders for recipes, attributes, templates, resources, providers, and any other Chef resources. In this case, the cookbook only contains some default...