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)

Rebooting Windows


Often times, Windows needs to be rebooted to update system settings that have been changed during the course of an installation or reconfiguration. The windows cookbook provides the windows_reboot resource to notify WindowsRebootHandler that a reboot is required. If WindowsRebootHandler is registered as a report handler, a reboot will be requested upon a complete and successful execution of the Chef client.

Typically, this resource is notified by other resource blocks when a reboot is required, often after installing new software or changing system settings.

Your recipe will need to make sure that the reboot handler is included with the following command:

include_recipe 'windows::reboot_handler' 

The following table outlines the actions and parameters that can be associated with the windows_reboot resource:

windows_reboot

Action

Description

request

This requests a reboot to be scheduled once the Chef client has completed execution. This requires WindowsRebootHandler...