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


scaledown_cleanup (6) Versions 0.1.1

Removes nodes and client keys from chef server upon shutdown (runlevel 0 aka AWS termination)

cookbook 'scaledown_cleanup', '= 0.1.1', :supermarket
cookbook 'scaledown_cleanup', '= 0.1.1'
knife supermarket install scaledown_cleanup
knife supermarket download scaledown_cleanup
Quality 100%

scaledown_cleanup Cookbook

----- Will be converting SysV scripts to upstart/systemd scripts very soon. Hold on to your kvm and be patient please! -----

This cookbook grants your nodes remote workstation capabilities to delete their node ID + client key from a chef server during scaledown (knife). Intended for auto-scaling groups running Ubuntu (or other Debian). Script executes on run level 0. Probably not the best practice for managing your chef server but YOLO! #You Only Linux Once!

Will expand support to other OS families and convert scripts to upstart/systemd in the coming days. Stay tuned my chef army brothers and sisters!


No requirements at the moment besides chef. Only tested on Ubuntu 12.04.


  • Ubuntu


  • ['chef']['url']
  • ['chef']['client_key']
  • ['chef']['validation_client_name']
  • ['chef']['validation_key']


Two steps:

  • Include recipe in your front-end's run list (via role or env or recipe)

  • Personalize the attributes for your infrastructure. Most likely only need to change chef url.


  1. Attribute out some more variables.
  2. Test to see if it works on other Linux distros. (Right now only tested on ubuntu 12.04 and redhat 7.1 manually)
  3. Build out next major release using upstart\systemd scripts instead of sysv or give you the option.


Will set up GitHub tomorrow.
1. Fork the repository on Github
2. Create a named feature branch (like add_component_x)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors

Authors: Brendan Ledoux

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

scaledown_cleanup CHANGELOG

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


  • [Brendan Ledoux] - Added dynamic support of debian and rhel families. However This still doesn't work yet. Will be converting to upstart/systemd scripts very shortly.


  • [Brendan Ledoux] - Initial release of scaledown_cleanup

Check the Markdown Syntax Guide for help with Markdown.

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

Foodcritic Metric

0.1.1 passed this metric