Book Image

Learning Chef

By : Rishabh Sharma, Mitesh Soni
Book Image

Learning Chef

By: Rishabh Sharma, Mitesh Soni

Overview of this book

<p>Chef automation helps to transform infrastructure into simple code. This means that building, rebuilding, configuration, and scaling to meet your customer's needs is possible in just a few minutes in a real-time environment.</p> <p>This book begins with the conceptual architecture of Chef, walking you through detailed descriptions of every Chef element. You will learn the procedure to set up your workstation and how to create a Cookbook in a hosted Chef environment.</p> <p>Private Chef Server setup is covered in depth, with information on the necessity of on-premise Private Chef deployment, benefits, and installation and configuration procedures for the different types of Private Chef servers including standalone, tiered, and high-availability.</p> <p>This book sheds light on industry best practices with practical Chef scenarios and examples.</p>
Table of Contents (17 chapters)
Learning Chef
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

AWS EC2 bootstrapping using Chef


AWS is the pioneer in providing IaaS. Elastic cloud computing (EC2) is the most popular and widely adopted Infrastructure as a service.

Here, we are going to see step-by-step procedures to bootstrap AWS EC2 instances. Let's start with the first step to set up a workstation.

Preparing your workstation

First, we need to prepare your workstation to install the knife-ec2 plugin, so that you can use the knife command on AWS instances. Here, we are considering to install the Ubuntu operating system on your workstation.

If Ruby is not installed on your workstation, kindly go ahead with the Ruby installation first:

sudo apt-get update
sudo apt-get install ruby1.8-dev ruby1.8ri1.8rdoc1.8irb1.8
sudo apt-get install libreadline-ruby1.8libruby1.8libopenssl-ruby
sudo apt-get install libxslt-dev libxml2-dev

After this is done, the Gem installation is also required on Ubuntu because Gems contain all of the package information with files for installation:

sudo apt-add-repository...