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)

Performing the installation


Now that you know what the cookbook and its recipe are doing, let's go ahead and apply the recipe to our Windows host. Here, we will install the Umbraco CMS onto a Windows host through the following steps:

  • Bootstrapping the Windows server with the Chef client

  • Creating a role for the Umbraco CMS application

  • Adding the umbraco recipe to the Umbraco role's run_list

  • Applying the newly created role to the host

  • Completing the configuration of the CMS through a web browser

Bootstrapping the host

In the following example, we are using a Windows Server 2012 host with a fresh installation of Windows. As usual, we will bootstrap our host using knife as follows:

knife bootstrap windows winrm HOSTIP -x Administrator -d windows-chef-client-msi

This will execute the contents of the windows-chef-client-msi.rb bootstrapping template on the host located at HOSTIP, installing the Chef client and registering the host with the Chef service. Once it has completed, you will see an output...