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

Select Status


chefknife (2) Versions 0.1.15

Installs/Configures chefknife

cookbook 'chefknife', '= 0.1.15', :supermarket
cookbook 'chefknife', '= 0.1.15'
knife supermarket install chefknife
knife supermarket download chefknife
Quality -%

chefknife Cookbook

Chefknife is a Ruby command-line utility to help manage multiple Chef servers and multiple knife configs.


A recent copy of Ruby. Tested with 1.9.3.


This cookbook contains the following attributes.

Config file for chefknife.

default['chefknife']['chefknife_config'] = '/etc/chef/chefknife'

List of Chef knife configs ( e.g. knife.rb ). You MUST OVERRIDE this!

default['chefknife']['knife_configs'] = []


You can execute chefknife, chefknife -h, or chefknife --help to get the help menu:
<pre><code> ~/chef-hosted: chefknife
Usage: opt_parser COMMAND [OPTIONS]

environments: Upload ALL Chef environments to ALL Chef servers!
environment: Upload single Chef environment to ALL Chef servers
roles: Upload ALL Chef roles to ALL Chef servers!
role: Upload single role to ALL Chef servers
data_bags: Upload ALL Chef data bags to ALL Chef servers!
data_bag: Upload single data bag to ALL Chef servers
cookbooks: Upload ALL Chef cookbooks to ALL Chef servers!
cookbook: Upload single cookbook to ALL Chef servers

-h, --help help

NOTE: All chefknife commands must be executed from within your Chef repo ( e.g. Chef repo shoudl be = to PWD ).

The following chefknife cmd can be used to upload ALL Chef environments to ALL Chef servers!:
<pre><code> ~/chef-hosted: chefknife environments

The following chefknife cmd can be used to upload a single Chef environment to ALL Chef servers:
This assumes you have an enviroment called production.
<pre><code> ~/chef-hosted: chefknife environment production

The following chefknife cmd can be used to upload ALL Chef roles to ALL Chef servers!:
<pre><code> ~/chef-hosted: chefknife roles

The following chefknife cmd can be used to upload a single Chef role to ALL Chef servers!:
This assumes you have a role named webserver.
<pre><code> ~/chef-hosted: chefknife role webserver

The following chefknife cmd can be used to upload ALL cookbooks to ALL Chef servers!:
<pre><code> ~/chef-hosted: chefknife cookbooks

The following chefknife cmd can be used to upload a single cookbook to ALL Chef servers!:
<pre><code> ~/chef-hosted: chefknife cookbook apache2

You should override the default['chefknife']['knife_configs'] = [] attribute with a list of knife configs for all your chef servers,
including Enterprise Chef if you're using it.

Below is a sample role you could use to deploy chefknife and it's config file /etc/chef/chefknife containing paths to multiple knife.rb files.
name "chefknife"
description "Manages multiple Chef Servers."
"chefknife" => {
"knife_configs" => [ "/etc/chef/chef01-knife.rb","/etc/chef/chef02-knife.rb" ]

You can install chefknife by including chefknife in your node's run_list:
"run_list": [

Below is a sample chefknife config.
skywalker@alderaan: ~: cat /etc/chef/chefknife


  • The chefknife cmd-line utility will be written as /usr/local/bin/chefknife.
  • chefknife's config file will be written as /etc/chef/chefknife.


  • Fork the repository on Github
  • Create a named feature branch (like add_component_x)
  • Write you change
  • Write tests for your change (if applicable)
  • Run the tests, ensuring they all pass
  • Submit a Pull Request using Github

License and Authors

Authors: Gerald L. Hevener Jr., M.S.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

chefknife CHANGELOG

This file is used to list changes made in each version of the chefknife cookbook.


  • Remove metadata.json.


  • Add OSX support.


  • Fix chefknife template syntax error.


  • Fix syntax errors.


  • Update attributes file.

- Fix syntax error in default.rb.

- Update default.rb.


  • Fix syntax in default.rb.


  • Add attributes for user/group ownership. Mainly due to no root UNIX group on OSX.


  • Fix chefknife data_bag to upload single data bag item.


  • [your_name] - Initial release of chefknife

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

No quality metric results found