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

Upgradation of the open source Chef server


Chef updates its feature and services frequently in order to make our automation process up to date. We require to upgrade our current system with the latest one.

Version upgradation is simpler when it comes to upgradation of the Chef server 0.10.x to Chef server 11.x. For this to be done, install the Chef server and then transfer all the data from the older server to the new one. Data can't be moved directly.

Some knife subcommands have to be used for the upgradation, as the database for Chef server 0.10.x is CouchDB and the database for Chef server 11.x is PostgreSQL. The knife subcommands are:

Knife download
Knife list
Knife upload

These are used to download the data from the Chef server 0.10.x and upload on the Chef server 11.x. This approach solves the data storage problem.

Now, we need to install the latest version of the knife-essentials plugin:

$ gem install knife-essentials

Existing requirements

You should have the following requirements for...