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)

Managing Amazon EC2 instances


Amazon EC2 is a very popular cloud-computing platform, and knife has support for managing EC2 instances from the command line through the knife-ec2 plugin. In this section, we will demonstrate the following steps for working with EC2:

  • Installing the EC2 knife plugin

  • Configuring knife with your AWS credentials

  • Finding the desired Amazon Machine Image (AMI), a pre-built system image

  • Provisioning a new host with knife

  • Bootstrapping the newly created host

  • Configuring the new host with a role

Installing the EC2 knife plugin

As of Chef 0.10, the ec2 subcommands have been moved from being built-in to knife into an external gem, knife-ec2. In order to use EC2 commands, you will need to install the gem, which can be done with the help of the following command:

gem install knife-ec2

This will install all of the gem dependencies that the EC2 plugin requires.

Setting up EC2 authentication

In order to manage your EC2 hosts, you will need your SSH key pair and your AWS access keys...