Book Image

Instant Chef Starter

By : John Ewart
Book Image

Instant Chef Starter

By: John Ewart

Overview of this book

<p>As any systems administrator will tell you, managing one server can be challenging, let alone a dozen or more. With Chef, you can make managing dozens or even hundreds of servers manageable and learn how to configure and deploy new servers.<br /><br />"Instant Chef Starter" is a hands-on guide to managing your infrastructure. You will learn the benefits of using Chef as well as how to install, configure, and use the set of tools provided. The book will also cover developing recipes for use with Chef to install software and maintain configurations so managing dozens of servers is no more difficult than managing one. <br /><br />Learn how Chef fits into your infrastructure, install the software, build your own recipes, and provision servers with ease.<br /><br />This book covers installing your own Chef server to manage your infrastructure and software configurations. Discover where you can find existing templates for managing software packages and operating systems and then learn to write your own. After you have done that, learn how to apply operations, execute scripts, and manage configurations across an entire network with only one command.</p>
Table of Contents (7 chapters)

People and places that you should know


There is a plethora of online resources regarding working with Chef; here are some key sources to get you started.

Opscode resources

These are resources that are made available by Opscode and focus specifically on Chef itself.

Chef wiki and documentation

Opscode maintains a wiki that serves as an official resource for documentation; as new features are released you can find current information here: http://wiki.opscode.com/display/chef/Home

Chef source code

You can download the source code of Chef from GitHub at https://github.com/opscode/chef.

Community portal

The community portal available at http://community.opscode.com/ is a good starting point for finding community-provided resources, events, and updates.

Opscode blog

If you want information on events, workshops, conferences, upcoming releases, or other news regarding Chef, the Opscode blog available at http://www.opscode.com/blog/ is a good place to look.

Chef users' mailing list

The official Chef mailing list is active and contains lots of good information and resources for getting questions answered. You can view the archives or sign-up for the list here:

http://lists.opscode.com/sympa/info/chef

Cookbook repositories

There are many resources on the Internet for pre-existing cookbooks that you can download to use or modify for your own use. Two of the best resources are operated by Opscode themselves.

Opscode community cookbooks

The community cookbooks site at http://community.opscode.com/cookbooks has an excellent collection of cookbooks provided by Opscode. This site provides a tool for browsing and searching the cookbooks and their metadata.

Opscode cookbooks on GitHub

Opscode also makes a wide collection of cookbooks available through their GitHub account at https://github.com/opscode-cookbooks.

Vagrant

Vagrant is a great way to bring up virtual machines for testing and working with Chef recipes. There are even projects which are specifically designed to bring the two together.

Vagrant project

This is designed to provide a simple way to spin up virtual machines programmatically. Vagrant makes it possible to easily start up virtual machines with which to test recipes locally in a clean environment, and can be found at http://vagrantup.com/.

Vagrant butcher

This helps facilitate cleaning up after clients so that they don't pollute your Chef Server. You can find the source for this projects at https://github.com/cassianoleal/vagrant-butcher.

Ruby resources

As Chef, and recipes, providers, resources, and other components are all written using Ruby, you may find that you need to learn a little more about Ruby, here are some excellent resources for that.

Ruby quick-start tutorial

This quick-start guide provides a great way to get started with Ruby. More information is available at http://www.ruby-lang.org/en/documentation/quickstart/.

Official Ruby documentation

The authoritative source for Ruby documentation can be found at:

http://www.ruby-lang.org/en/documentation/.

Code academy Ruby track

Code Academy has a great selection of Ruby lessons targeting a range of developers from beginner to advanced user. You can learn more on their website at http://www.codecademy.com/tracks/ruby.