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


rc (20) Versions 1.5.1

Library cookbook which provides a resource for writing runtime configuration files.

cookbook 'rc', '= 1.5.1'
cookbook 'rc', '= 1.5.1', :supermarket
knife supermarket install rc
knife supermarket download rc
Quality 100%


Build Status Code Quality Cookbook Version License

Library cookbook which provides a resource for writing runtime configuration files.

A runtime configuration file can come in many flavors, but ultimately the purpose is to manage them using a simple resource. The only type which is provided by default is a bash runtime configuration which is simply a key-value pair.

Basic Usage

This cookbook supports several different formats for writing out runtime configuration files from a Ruby Hash object. - EDN - YAML - TOML - INI - Java .properties - [UNIX][] and [Windows][] environment variables - JSON

Writing bashrc skeleton

Any new types can be added by modifying the resource (adding a type) and writing the appropriate erb template. The example which is used for testing purposes is writing out an bashrc skeleton file which manages HTTP proxies. ruby rc_file '/etc/skel/bashrc' do type 'bash' options( 'http_proxy' => '', 'https_proxy' => '', 'ftp_proxy' => '', 'no_proxy' => 'localhost,' ) end

Writing Berkshelf configuration

Additionally, this resource supports writing out standard configuration file types such as JSON, YAML and EDN. The example below shows to write out a Berkshelf configuration file in the JSON format. ruby rc_file '/etc/skel/berkshelf.json' do type 'json' options( 'cookbook' => { 'copyright' => 'Bloomberg Finance L.P.', 'email' => '', 'license' => 'apachev2' } ) end

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.


  • Add support for the INI file format.



  • Fix issue where the edn gem was not installing at compile time.


  • Fix issue with test harness and Travis failing due to TOML.
  • Fix foodcritic failures with linting.


  • Add support for TOML file format.


  • Add support for the EDN file format.


  • Initial cookbook release with support for JSON, YAML Bash and BAT.

Foodcritic Metric

1.5.1 passed this metric