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


topo (6) Versions 0.1.1

Sets node configuration from a topology data bag

cookbook 'topo', '= 0.1.1'
cookbook 'topo', '= 0.1.1', :supermarket
knife cookbook site install topo
knife cookbook site download topo

topo Cookbook

This cookbook supports unattended bootstrap of nodes when using the knife-topo plugin to configure single or multi-node topologies. This can be useful in combination with CloudFormation or other provisioning tools.


Upload a topology definition to the Chef Server using knife-topo:

knife topo import test1.json
knife topo create test1

Use a single attribute in a first-boot json file of each node to specify the topology name, and optionally a node type:

  "topo": {
    "name": "test1",
    "node_type": "appserver"

Trigger the unattended bootstrap by running:

chef-client -o topo::setup_node --json firstboot.json

The first chef-client run will set the configuration (runlist, chef environment, tags and attributes) based on the uploaded topology and either the node name or the node type; the second run will apply that configuration.


  • node['topo']['name'] - Name of the topology to be used to configure the node
  • node['topo']['node_type'] - If is not found in the topology, then this attribute will be used to find a match.
  • node['topo']['blueprint_name'] - If no topology data bag item matching node['topo']['name'] is found, then this attribute is used as an alternative.


Author:: Christine Draper (

Copyright:: Copyright (c) 2015 ThirdWave Insights, LLC

License:: Apache License, Version 2.0

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.1.1 passed this metric