Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

The el2centos cookbook has been deprecated

The el2centos cookbook has been deprecated and is no longer being maintained by its authors. Use of the el2centos cookbook is no longer recommended.


el2centos (4) Versions 0.0.3

Converts an Enterprise Linux system to a CentOS system

cookbook 'el2centos', '= 0.0.3'
cookbook 'el2centos', '= 0.0.3', :supermarket
knife supermarket install el2centos
knife supermarket download el2centos
Quality -%


A little Chef recipe to convert "Self Supported" Enterprise Linux machines to the equivalent Community Enterprise (CentOS) release.

The recipe will attempt to run yum -y upgrade at the end to gracefully complete the conversion from RedHat to CentOS.

I take absolutely no responsibility if you break your system with this.


External dependencies include the Opscode yum cookbook, and the yum_key LWRP.

This recipe will only run on a RedHat Enterprise Linux system. RHEL 6.0+ support has not been tested thoroughly, but it should work.


Append the recipe to a selected node's run_list with knife:

knife node run_list add <node name> el2centos

Run chef-client on the selected node, and watch for any errors interrupting which may lead to a "frankenstein" system.

If the recipe detects a platform other than RedHat, it should automatically remove itself from the run_list.


If something goes wrong and you are left with a "frankenstein" system, it might look like this:

ohai platform

Also, chef-client may refuse to run, and claim it cannot detect Chef::Node.


Try running chef-client with the -N flag.

chef-client -N <node name>

Try completing the conversion process manually:

rpm -Uvh --force /var/cache/chef/el2centos/*.rpm
yum -q makecache
yum -y upgrade

License and Author

Author: Eric G. Wolfe (

Copyright 2012, Eric G. Wolfe

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

yum >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found