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)

Scheduling tasks


The windows_task resource allows you to create, delete, or execute a Windows scheduled task. These are tasks that execute at regular intervals and are useful for things such as running the Chef client regularly, checking for updates, cleaning up temporary files, downloading cache data, or anything else that needs to be scheduled.

Tip

This resource provider requires Windows Server 2008 because of the API that it uses.

The following table lists the available actions and parameters when creating scheduled tasks through the windows_task resource:

windows_task

Action

Description

create

This creates a new scheduled task.

delete

This deletes a task.

run

This runs the named task.

change

This updates the properties of a specified task.

windows_task

Parameter

Description

name

This is the resource name attribute specifying the name of the task (arbitrary name).

command

This is the command to execute on an interval.

cwd

This specifies the directory...