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)

Installing the Chef client on Windows


In order to install the Chef client on Windows, there are three basic options to be performed, as follows:

  1. Use the knife-windows plugin to bootstrap the host as described previously.

  2. Download and manually install the client using the MSI installer.

  3. Deploy the software via an in-place update tool such as WSUS (this mechanism will not be discussed because it is outside the scope of this book).

Preparing to bootstrap Windows hosts

As discussed in the previous chapter, bootstrapping a host is the process of installing any components required to initially incorporate a host into your infrastructure. Typically, this will involve installing Ruby along with the Chef client and any certificates required for authentication, as well as registering the host with your Chef server or hosted Chef account. In order to do this, you will need to have a workstation configured with the knife-windows gem installed. You can install the gem easily with the following command:

gem...